Skip to main content

1. Install Codex

Install Codex from the Codex CLI GitHub.

2. Configure Anyfast

In your shell profile (.bashrc, .zshrc, or .profile):
export OPENAI_API_KEY="sk-your-api-key-here"
export OPENAI_BASE_URL="https://www.anyfast.ai/v1"

3. Apply Configuration

# bash users
source ~/.bashrc

# zsh users
source ~/.zshrc

4. Start Codex

codex
Specify a model via CLI:
codex --model gpt-4o
You are now ready to use Anyfast models in Codex.