Using FishXCode with Codex
Install Codex
bash
pnpm install -g @openai/codexbash
npm install -g @openai/codexbash
yarn global add @openai/codexbash
bunx --global @openai/codexConfigure Environment Variables
- Visit https://fishxcode.com/console/token to obtain your API Key
- Set a system environment variable named
FISHXCODE_TOKENwith your obtained key - Create
~/.codex/config.tomlwith this configuration:
toml
model = "gpt-5"
model_provider = "openai-chat-completions"
preferred_auth_method = "apikey"
[model_providers.openai-chat-completions]
name = "OpenAI using Chat Completions"
base_url = "https://fishxcode.com/v1"
env_key = "FISHXCODE_TOKEN"
wire_api = "chat"
query_params = {}
stream_idle_timeout_ms = 300000- Create
~/.codex/auth.json:
json
{
"OPENAI_API_KEY": "your_api_key_here"
}Launch Directly
bash
cd my-project
codexUsing Codex in VSCode
- Install the Codex extension
- Access settings and switch to JSON configuration mode
- Add these settings:
json
{
"chatgpt.apiBase": "https://fishxcode.com/v1",
"chatgpt.config": {
"preferred_auth_method": "api_key",
"model_provider": "openai-chat-completions"
}
}- Click the Codex icon to begin using it