OpenClaw
Use Foza models with OpenClaw
Setup#
Use OpenClaw with Foza when you want an agent runtime that can call an OpenAI-compatible gateway. Start with one model and one project before adding more routing rules.
1
Get your API key
Create an API key at Console → API Keys and subscribe it to a model.
2
Configure OpenClaw
In your OpenClaw configuration, set the API provider to OpenAI Compatible and configure:
- Base URL:
https://api.foza.ai/v1 - API Key:
sk-foza-xxxxx - Model: Enter your model slug, e.g.,
anthropic/claude-sonnet-4.6
3
Check model capabilities
For coding-agent workflows, choose a model that handles tool calls and long context well. If a smaller model fails on multi-file edits, switch to a Sonnet-class model.
4
Start using OpenClaw
OpenClaw will now route all AI requests through the Foza gateway.
Verification prompt#
Read the repository and list the files you would inspect before changing authentication. Do not edit anything.Troubleshooting#
| Symptom | What to check |
|---|---|
| Provider not accepted | Select an OpenAI-compatible/custom provider mode |
| Model errors | Use the exact Foza model slug and confirm subscription |
| Tool-call failures | Try a stronger coding model and reduce task size |
Any model subscribed to your Foza API key will be available in OpenClaw.