Prerequisites
- A free Cartesia account (sign up here)
- Python 3.9+
- An LLM API key (Anthropic, OpenAI, Google, etc.)
- uv (Python package and project manager)
Install the CLI
Install uv
Install uv, a fast Python package manager to manage dependencies and virtual environments.Create your agent
Create a new project and install dependencies. uv will automatically set up a virtual environment and manage your packages.main.py:
Test locally
Start your agent server.Deploy
Link your project and deploy.Set environment variables
Configure your API key for the deployed agent..env file: