When you create a new Conductor worktree, the environment is automatically configured via .conductor.json.
The setup script copies .env from the repository root to your worktree, giving you instant access to configured agents.
In the repository root (not in a worktree):
cd /path/to/adcp-client-python
cp .env.example .env
# Edit .env with your agent configurationsThat's it! When you create or enter a Conductor worktree, the setup happens automatically.
Use this JSON format for multi-agent configuration:
ADCP_AGENTS='[
{
"id": "creative_agent",
"name": "Creative Agent",
"agent_uri": "https://creative.adcontextprotocol.org",
"protocol": "mcp"
},
{
"id": "my_agent",
"name": "My Agent",
"agent_uri": "https://my-agent.example.com",
"protocol": "mcp",
"auth_token": "your-token-here"
}
]'Then in code:
from adcp import ADCPMultiAgentClient
client = ADCPMultiAgentClient.from_env()
agent = client.agent("my_agent")For single-agent usage:
AGENT_URI=https://agent.example.com
AGENT_PROTOCOL=mcp
AGENT_TOKEN=your-tokenIf automatic setup doesn't work, run manually:
python3 scripts/setup_conductor_env.py- ✅
.envis gitignored - ✅ Store tokens in
.envat repository root - ✅ Use
.env.examplefor documentation - ❌ Never commit actual tokens to git
# Creative agent (public, no auth)
python3 tests/integration/test_creative_agent.py
# Your own agents (configured in .env)
python3 tests/integration/test_your_agent.py"No .env file found":
cd /path/to/adcp-client-python # Repository root
cp .env.example .env
# Edit .envSetup didn't run automatically:
# Run manually in your worktree
python3 scripts/setup_conductor_env.pySee full documentation in README.md for complete usage examples.