Condor supports multiple LLM providers through two integration methods:Documentation Index
Fetch the complete documentation index at: https://condor.hummingbot.org/llms.txt
Use this file to discover all available pages before exploring further.
- ACP Protocol: Native integration with Claude Code, Gemini, GitHub Copilot, and Codex
- PydanticAI: Direct API access to OpenRouter and to local models via Ollama and LM Studio
Before installing Condor: Install and authenticate your LLM provider in the CLI first.
Already installed Condor? Set up your LLM provider, then restart Condor for the changes to take effect.
Already installed Condor? Set up your LLM provider, then restart Condor for the changes to take effect.
Using the /agent Command
The /agent command in Telegram is how you connect Condor to your LLM and run autonomous Trading Agents. From the /agent menu you can:
- Change LLM — pick which installed provider to use for new sessions
- Start — launch an agent session with the currently selected LLM
- Stop — end the active session
- Status — view the currently active provider and model
/agent → Change LLM → pick your provider → /agent → Start. Full step-by-step instructions are in Configure in Telegram.
Supported Providers
Cloud Providers (ACP Protocol)
| Provider | Agent Key | Installation |
|---|---|---|
| Claude Code | claude-code | curl -fsSL https://claude.ai/install.sh | sh |
| Gemini | gemini | npm install -g @google/gemini-cli |
| GitHub Copilot | copilot | npm install -g @github/copilot-cli |
| Codex | codex | npx @zed-industries/codex-acp |
API Key Providers (PydanticAI)
| Provider | Agent Key | Setup |
|---|---|---|
| OpenRouter | openrouter | Set OPENROUTER_API_KEY — see OpenRouter |
Local Providers
| Provider | Agent Key | Installation |
|---|---|---|
| Ollama | ollama | curl -fsSL https://ollama.com/install.sh | sh |
| LM Studio | lmstudio | Download from lmstudio.ai |
Setup Instructions
Claude Code
Claude Code is the default and most integrated option for Condor Trading Agents. 1. Install Claude Code: Install via CLI:Claude Code label.
Gemini
1. Install Gemini CLI:GEMINI_API_KEY environment variable from Google AI Studio.
3. Verify:
Gemini CLI label.
GitHub Copilot
1. Install prerequisites:Github Copilot CLI label.
Codex
Condor connects to Codex through Zed’s ACP bridge (@zed-industries/codex-acp). You’ll need the Codex CLI installed and authenticated, plus the ACP bridge available for Condor to invoke.
1. Install the Codex CLI:
Download and install Codex from openai.com/codex.
2. Sign in:
Open Codex and sign in with your ChatGPT account or an OpenAI API key.
3. Install the ACP bridge:
npx. You can also install it globally with npm install -g @zed-industries/codex-acp.
4. Verify installation:
ChatGPT Codex label.
OpenRouter
OpenRouter routes requests to many models — including some free ones — through a single API key, often at lower cost than going to a provider directly. Condor connects to it through PydanticAI’s OpenAI-compatible client, so no CLI install is required. 1. Get an API key: Create a key at openrouter.ai/keys. 2. Set the environment variable: Add your key to Condor’s.env:
/agent → Change LLM → OpenRouter — Pick Model. Condor fetches the live OpenRouter catalog and lists only models that advertise tool-call support (Condor’s agents depend on tool calling, so models without it are filtered out). Pick one from the list, or choose Enter model manually to provide a model slug.
Your selection is stored as openrouter:<model> — for example openrouter:anthropic/claude-sonnet-4-5. To run at no cost, choose one of the openrouter/free models.
If a request fails with an insufficient-credits error, add credits to your OpenRouter account or switch to a
openrouter/free model.Ollama (Local)
Perfect for development, testing, and cost-effective experimentation. 1. Install Ollama: Visit ollama.com and download for your platform.agent_key: ollama), Condor automatically selects one:
- Checks environment variables (
CONDOR_DEFAULT_LOCAL_MODELorOLLAMA_MODEL) - Queries the Ollama API (
/api/tags) and uses the first available model - If no model is found, prompts you to specify one explicitly
Ollama - Default Model label.
Local models have a reduced tool surface depending on parameter count — see Tool Filter Modes.
config/agents.yaml):
LM Studio (Local)
GUI-based local model hosting with OpenAI-compatible API. 1. Install LM Studio: Download from lmstudio.ai 2. Download a model:- Open LM Studio
- Browse the model library
- Download a model (e.g., Qwen 2.5, Llama 3.1)
- Go to “Local Server” tab
- Click “Start Server”
- Default port: 1234
- Make sure a model is loaded
LM Studio - Default Model label.
Local models have a reduced tool surface depending on parameter count — see Tool Filter Modes.
config/agents.yaml):
Configure in Telegram
Once your provider is installed and authenticated, connect it to Condor from Telegram. 1. Select your provider: Run the/agent command and select Change LLM, then choose your provider using the label from the table below.
You should see a confirmation message:
/agent command again and click Start.
Once the agent is ready you’ll see:
Provider labels
| Provider | Telegram label |
|---|---|
| Claude Code | Claude Code |
| Gemini | Gemini CLI |
| GitHub Copilot | Github Copilot CLI |
| Codex | ChatGPT Codex |
| OpenRouter | OpenRouter — Pick Model |
| Ollama | Ollama - Default Model |
| LM Studio | LM Studio - Default Model |
Tool Filter Modes
Local models automatically adjust tool availability based on size:- Essential (≤8B params): Minimal tools, basic operations
- Moderate (9-32B params): Common trading operations
- Full (>32B params, cloud): All available tools
Choosing the Right Provider
For Production Trading
Recommended: Claude Code or ChatGPT Codex- High reliability and uptime
- Strong reasoning capabilities
- Full tool access
- Consistent performance
For Development
Recommended: Ollama or LM Studio- No API costs
- Fast iteration
- Full control over model
- Privacy (runs locally)
Performance Comparison
| Provider | Reasoning | Speed | Cost | Reliability |
|---|---|---|---|---|
| Claude Code | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | 💰💰 | ⭐⭐⭐⭐⭐ |
| ChatGPT Codex | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 💰💰💰 | ⭐⭐⭐⭐⭐ |
| Gemini CLI | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | 💰 | ⭐⭐⭐⭐ |
| GitHub Copilot CLI | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | 💰💰 | ⭐⭐⭐⭐ |
| Ollama (70B) | ⭐⭐⭐⭐ | ⭐⭐⭐ | Free | ⭐⭐⭐ |
| Ollama (8B) | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free | ⭐⭐⭐ |
Troubleshooting
”Command not found” errors
If Condor can’t find your LLM CLI:- Verify installation:
- Check PATH:
- Restart Condor after installing LLM tools:
Changed LLM but Condor still uses the old one
Change LLM only affects new sessions. Stop any active agent session with /agent → Stop (or send any non-agent command), then run /agent → Start to pick up the new provider. If it still persists, restart Condor:
Authentication Issues
Claude Code:gemini and select a different authentication method, or clear cached credentials and restart the interactive login:
Local Model Connection Errors
Ollama not running:- Open LM Studio app
- Go to “Local Server” tab
- Click “Start Server”
Model Not Found (Ollama)
If you get “No local model found”:Best Practices
Installation Order:- Install LLM provider CLIs first
- Authenticate with each provider
- Test the CLI tools independently
- Then install / start Condor
- Use CLI authentication tools (not environment variables when possible)
- Never commit credentials to git
- Use separate API keys for development and production
- Start with Claude Code or ChatGPT Codex for best results
- Use Ollama 70B+ for cost-effective alternatives
- Avoid models under 8B for complex trading strategies
Additional Resources
ACP Documentation
Agent Client Protocol specification
Claude Code Guide
Official Claude Code documentation
Ollama Library
Browse available Ollama models
Trading Agents
Build your first Trading Agent

