Connect your local AI agent to WaveSpeed LLM
Pick an agent, choose a WaveSpeed model, copy the right local config file, and route requests through the protocol that agent expects.
~/.codex/config.toml
OpenAI Responses API
/v1/responses
Quick start
Create a WaveSpeed access key
Export the required key locally
Paste config into~/.codex/config.toml
Run codex and check Logs
OpenAI-compatible chat completions
Usage appears in Dashboard and Logs
Switch models without rewriting agent code
# File: ~/.codex/config.toml
model = "openai/gpt-5.6-sol"
model_provider = "wavespeed"
[model_providers.wavespeed]
name = "WaveSpeed AI"
base_url = "https://llm.wavespeed.ai/v1"
env_key = "WAVESPEED_API_KEY"
wire_api = "responses"Do not replace the variable name
WAVESPEED_API_KEY is the environment variable name that the agent reads. Keep this name in the config file, and put your real API key in your shell instead.
Temporary for this terminal
Works until you close this terminal window.
export WAVESPEED_API_KEY="wsk-..."Keep it after restart
Writes the key into your shell profile so new terminals can read it.
echo 'export WAVESPEED_API_KEY="wsk-..."' >> ~/.zshrc
source ~/.zshrc