Documentation Index
Fetch the complete documentation index at: https://concentrate.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Codex integration is currently in beta. Some features may have limitations or be subject to change.
Concentrate and Codex
Codex is a command-line coding assistant from OpenAI that supports OpenAI-compatible APIs. By pointing Codex at Concentrate, you get a number of important advantages over connecting to OpenAI directly.Unified Spend Management
Concentrate offers centralized budget management for groups and companies. You can prevent unforeseen cost overruns and assign limits to team members all through the Concentrate dashboard. This is particularly helpful if many developers use Codex throughout your company.Observability and Insights
With Concentrate, you can monitor all of your team’s Codex activity through the dashboard. This includes usage statistics, top spenders, providers and models, latency and more.Prerequisites
Before you begin, ensure you have:- A Concentrate AI account with an active API key (starts with
sk-cn) - Codex CLI installed
Quick Setup
Bash
Verify Installation
After running the setup script:-
Restart your terminal or source your shell profile:
-
Launch Codex:
The CLI should start without errors and show your configured model.
Manual Setup
If you prefer to configure Codex manually or the automated script doesn’t work for your environment:Set your API key
Add the following to your shell profile (Then reload your shell:
~/.bashrc, ~/.zshrc, etc.):Remove Concentrate AI
Bash
Troubleshooting
API key not found error
API key not found error
If you see an error about a missing API key:
-
Verify the environment variable is set:
-
Make sure you’ve sourced your shell profile:
-
Confirm
env_keyin yourconfig.tomlis set to"CONCENTRATE_API_KEY"(not"OPENAI_API_KEY")
Invalid API key error
Invalid API key error
If your API key is rejected:
- Verify the key in your dashboard
- Ensure there are no extra spaces or quotes in the environment variable
- Check that the key starts with
sk-cn
Connection errors
Connection errors
If you cannot connect to the API:
-
Verify
base_urlin yourconfig.tomlis set correctly: -
Test the connection manually:
- Check your internet connection and firewall settings
Next Steps
Codex CLI on GitHub
View source, report issues, and follow development
Available Models
Browse all supported models
API Reference
Explore the full API capabilities
Get Support
Contact our support team