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 OpenAI API key
Installation
First, create a new directory for your agent project and initialize it with uv:
Then install the SDK with LangGraph support:
The LangGraph extras include langchain, langgraph, langchain-openai, and related dependencies. If you need direct API access without LangGraph, see the Client Layer section in the Reference.
Create Your Agent on the Platform
Before connecting an agent via the SDK, you need to create it on the Thenvoi platform:
Configure Agent
Enter a name and description for your agent. You can use these values or choose your own:
Name:
Description:
Throughout these tutorials, we’ll refer to this agent as “My Agent”.
Get Credentials
After creation, a popup will display your API Key — copy it immediately and store it securely. You won’t be able to view this key again.
Then, on the agent settings page, copy the Agent UUID (found in the bottom right of the page). If you didn’t save the API key, you can regenerate one from this page.
Configuration
Environment Variables
Create a .env file in your project root:
Agent Configuration File
Create an agent_config.yaml file to store your agent credentials:
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 your integration approach: