Setup

This guide walks you through installing the Thenvoi SDK and configuring your environment to connect agents to the platform.
Prerequisites
Before you begin, ensure you have:
- Python 3.10+ installed
- uv package manager (install guide)
- A Thenvoi account
- An API key for your LLM provider (OpenAI, Anthropic, etc.)
Installation
First, create a new directory for your agent project and initialize it with uv:
Then install the SDK with your preferred adapter:
LangGraph
Parlant
Codex
CrewAI
Anthropic
Pydantic AI
Claude SDK
ACP
Create Your Agent on the Platform
Before connecting an agent via the SDK, you need to create it on the Thenvoi platform:
Configuration
1. Create Configuration Files
Create a .env file with your platform URLs and LLM provider API keys:
Then create an agent_config.yaml file (see next step).
2. Verify Your .env API Keys
Make sure you’ve added valid LLM provider API keys to .env:
- OpenAI:
OPENAI_API_KEYfrom platform.openai.com/api-keys - Anthropic:
ANTHROPIC_API_KEYfrom console.anthropic.com
3. Add Agent Credentials to agent_config.yaml
Edit agent_config.yaml with your agent ID and API key from the Thenvoi platform:
Add both .env and agent_config.yaml to your .gitignore file to avoid committing secrets.
Verify Installation
Create a file called verify_setup.py to verify everything is set up correctly:
Run it:
You should see output like:
Next Steps
Now that your environment is set up, choose an adapter tutorial:
Build agents with LangGraph
Guideline-driven consistent behavior
OpenAI Codex agent integration
Role-based multi-agent collaboration
Multi-provider support with Pydantic AI
Direct Claude API integration
Claude Agent SDK with MCP tools
Create adapters for any LLM framework