Provider Reference¶
Supported providers¶
| Provider | Kind | Credential | Default model / execution | Capabilities |
|---|---|---|---|---|
| OpenAI | Model API | OPENAI_API_KEY | gpt-5.4-mini | generation, health, MCP host |
| Claude | Model API | ANTHROPIC_API_KEY | claude-sonnet-4-5 | generation, health, MCP host |
| Gemini | Model API | GEMINI_API_KEY | gemini-2.5-flash | generation, health, MCP host |
| OpenRouter | Model API | OPENROUTER_API_KEY | openrouter/auto | generation, health |
| Ollama | Local model | none | llama3.2 | generation, health, model discovery |
| Codex | Agent host | host auth or OPENAI_API_KEY | codex exec | agent execution, auth, MCP host |
| Cursor | Agent host | host auth or CURSOR_API_KEY | cursor-agent | agent execution, auth, MCP host |
| Windsurf | Agent host | host-managed | authenticated GUI host | auth status, MCP host |
Configure and verify¶
ai-workspace providers init openai --apply
ai-workspace credentials configure openai --apply
ai-workspace providers limits openai --mode budgeted --monthly-request-limit 100 --apply
ai-workspace providers verify openai
ai-workspace providers invoke openai --prompt "Return OK" --apply
Profiles store references, never secret values. Runtime requests enforce prompt, token, timeout, retry, and monthly request policies. Retryable failures use bounded exponential backoff; credentials and payloads are excluded from logs.
Best practices¶
- Use environment variables or encrypted local storage for development; use an approved secret manager in production.
- Start with guarded or budgeted policy mode.
- Run
verifybefore invocation and rotate credentials after suspected exposure. - Prefer Ollama for workflows that must avoid remote data egress.
For failures, inspect provider status and credential status; never paste keys into issue reports. See Security.