Prerequisites
Fast Agent requires:- Python: 3.13.5 or higher (but less than 3.14)
- uv: Astral’s fast Python package manager (recommended)
While you can use
pip to install Fast Agent, we recommend using uv for the best experience. It’s significantly faster and handles dependency resolution more efficiently.Install uv (Recommended)
If you don’t haveuv installed, install it first:
Install Fast Agent
Using uv (Recommended)
Install Fast Agent with uv:Using pip
If you prefer pip, you can install Fast Agent directly:Optional Dependencies
Fast Agent supports additional providers through optional dependencies:Azure OpenAI
For Azure OpenAI withDefaultAzureCredential support:
AWS Bedrock
For AWS Bedrock support:TensorZero Gateway
For TensorZero gateway support:Textual UI
For Textual-based UI components:All Providers
To install support for all providers at once:API Keys Setup
Fast Agent needs API keys for the LLM providers you want to use. You can provide these in two ways:Environment Variables (Recommended)
Set environment variables for your API keys:Configuration File
Alternatively, create afastagent.secrets.yaml file:
fastagent.secrets.yaml
Azure Configuration
For Azure OpenAI, you’ll need additional configuration:fastagent.secrets.yaml
Verify Installation
Test your installation with an interactive session:Platform-Specific Notes
Windows
Windows users need a couple of configuration changes for the Filesystem and Docker MCP Servers. The necessary changes are detailed within the configuration files generated byfast-agent scaffold.
Linux
On Linux, Fast Agent automatically usesuvloop for better async performance. No additional configuration needed.
Next Steps
Now that Fast Agent is installed, you’re ready to build your first agent!Quickstart Guide
Build your first Fast Agent in under 5 minutes
Troubleshooting
Python Version Issues
If you get Python version errors, ensure you’re using Python 3.13.5 or higher:Import Errors
If you encounter import errors, try reinstalling Fast Agent:API Key Errors
If you get API key errors, verify that:- Your environment variables are set correctly
- Your
fastagent.secrets.yamlfile is in the current or parent directory - The API keys are valid and have the necessary permissions
Getting Help
If you encounter issues:- Check the documentation
- Join the Discord community
- Report issues on GitHub
