System Requirements
You also need a KiosAPI API key (starts with
sk-) from the Dashboard → Token Management.
Usage
VSCode Plugin
Codex is also available as a VSCode extension. After installing the extension, configure it to use KiosAPI by setting the same environment variables in your VSCode settings or terminal.Advanced Configuration
Non-interactive CI mode
For CI/CD pipelines, run Codex in non-interactive mode:MCP servers
Codex supports Model Context Protocol (MCP) servers for extended tool access. Add MCP servers to~/.codex/config.toml:
Troubleshooting
Authentication error (401)
- Verify
KILOAPI_KEYis set correctly:echo $KILOAPI_KEY - Ensure the key starts with
sk- - Check that the
env_keyvalue in your config file matches the environment variable name exactly
Model not found
- Verify the model name in your profile is correct
- Check available models on the KiosAPI pricing page
Connection error
- Ensure
base_urlishttps://kiosapi.com/v1(with/v1) - Check your network connection and firewall settings