Using Codex with BlaBlador¶
This guide explains how to configure the Codex CLI harness to work with BlaBlador's API, giving you access to open-source models like Qwen3.5-35B-A3B through the VS Code extension.
Prerequisites¶
- A BlaBlador API key (see Blablador API access guide)
- VS Code with the Codex extension installed
Step 0: Install Codex Extension in VS Code¶
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+Xon macOS) to open Extensions - Search for "codex" or "openai"
- Look for the Codex extension (by OpenAI)
- Click Install
Verify Installation¶
After installation: 1. Reload VS Code (Ctrl+Shift+P → "Developer: Reload Window") 2. You should see Codex-related commands available via Ctrl+Shift+P
Step 1: Set Up Your API Key¶
Create an .env file in ~/.codex with your BlaBlador API key:
Set appropriate permissions for security:
Step 2: Configure Codex¶
Create or edit ~/.codex/config.toml with the following configuration:
model = "alias-code"
model_provider = "blablador"
[model_providers.blablador]
name = "BlaBlador"
base_url = "https://api.blablador.fz-juelich.de/v1"
env_key = "LOCAL_LLM_API_KEY"
wire_api = "responses"
Configuration Explanation¶
model = "alias-code": Uses the Qwen3.5-35B-A3B model via the aliasmodel_provider = "blablador": Specifies the BlaBlador providerbase_url: The BlaBlador API endpointenv_key: The environment variable containing your API keywire_api = "responses": Uses the Responses API compatible mode
Step 3: Use in VS Code¶
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS) - Type "Reload Window" and select "Developer: Reload Window"
- The Codex extension should now be ready to use with BlaBlador models
Available Models¶
BlaBlador hosts multiple open-source models. To see available models, visit the BlaBlador models page or check the API directly:
Troubleshooting¶
Error: "API key not found"¶
Make sure your .env file is at ~/.codex/.env and contains LOCAL_LLM_API_KEY="YOUR_KEY".
Error: "Connection refused"¶
Verify that: 1. Your API key is valid and not expired 2. You have internet access 3. The BlaBlador service is available at https://api.blablador.fz-juelich.de
Error: "Model not found"¶
Check that the model name is correct and available on BlaBlador. Use the alias alias-code for Qwen3.5-35B-A3B or specify the full model path.
Codex Extension Not Showing Up¶
- Ensure the extension is installed and enabled
- Reload VS Code window
- Check if
codexCLI is installed:which codex - Verify config at
~/.codex/config.tomlis valid TOML
See Also¶
- BlaBlador API access guide - How to get your API key
- Codex documentation - Official Codex documentation
- BlaBlador website - Access models via web interface