Skip to main content
Build an agent, deploy it, and make your first call within minutes.

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.
Create main.py:

Test locally

Start your agent server.
In a separate terminal, chat with your agent by simply running:
This lets you test your agent’s reasoning before deploying.

Deploy

Link your project and deploy.
Your agent deploys in under 30 seconds on Cartesia’s managed runtime.

Set environment variables

Configure your API key for the deployed agent.
Or import from a .env file:

Make a call

Call your agent from your phone.
Or visit the Playground to call from the web.

Next steps

Add tools

Connect databases, APIs, and external services

Configure prompts

Customize system prompts and conversation flow

WebSocket API

Connect web clients via WebSocket

Agent Builder

Build agents visually in the Playground