Skip to content

feat: add OfoxAI provider#1275

Open
Maklu wants to merge 2 commits intoanomalyco:devfrom
Maklu:feat/add-ofoxai-provider
Open

feat: add OfoxAI provider#1275
Maklu wants to merge 2 commits intoanomalyco:devfrom
Maklu:feat/add-ofoxai-provider

Conversation

@Maklu
Copy link
Copy Markdown

@Maklu Maklu commented Mar 26, 2026

What does this PR do?

Adds OfoxAI as a new provider. OfoxAI is an OpenAI-compatible API gateway. This PR includes 22 curated models — only the latest version of each model family, all with tool_call = true for coding agent compatibility:

Provider Count Models
Anthropic 3 Claude Opus 4.6, Sonnet 4.6, Haiku 4.5
OpenAI 5 GPT-5.4 Pro/Standard/Mini/Nano, GPT-5.3 Codex
Google 3 Gemini 3.1 Pro, 3 Flash, 3.1 Flash Lite
DeepSeek 1 DeepSeek V3.2
Qwen 3 Qwen3.5 Plus/Flash, Qwen3 Coder Plus
Doubao 2 Doubao Seed 2.0 Pro/Code
MiniMax 2 MiniMax M2.7/Highspeed
GLM 2 GLM-5/Turbo
Kimi 1 Kimi K2.5
  • Uses @ai-sdk/openai-compatible
  • API endpoint: https://api.ofox.ai/v1
  • Auth: OFOXAI_API_KEY
  • Docs: https://docs.ofox.ai

How did you verify?

  • Ran bun run validate — OfoxAI provider parsed correctly with all 22 models, no errors
  • Model IDs, pricing, context limits, and capabilities sourced directly from OfoxAI's /v1/models API
  • TOML format follows existing provider patterns (Kilo, OpenRouter)
  • Only latest-generation models included; older versions (e.g. GPT-4o/4.1, Gemini 2.5, GLM 4.x) excluded

Companion PR for opencode integration: anomalyco/opencode#19210

OfoxAI is an OpenAI-compatible API gateway (https://ofox.ai) providing
unified access to 73+ AI models across 9 providers including Anthropic,
OpenAI, Google, DeepSeek, Bailian (Qwen), MiniMax, Volcengine (Doubao),
Zhipu AI (GLM), and Moonshot AI (Kimi).

- Uses @ai-sdk/openai-compatible npm package
- API endpoint: https://api.ofox.ai/v1
- Auth via OFOXAI_API_KEY environment variable
Maklu added a commit to Maklu/opencode that referenced this pull request Mar 26, 2026
OfoxAI is an OpenAI-compatible API gateway providing unified access to
73+ AI models (Claude, GPT, Gemini, DeepSeek, Qwen, and more).

Add custom loader with standard attribution headers, following the
same pattern as the Kilo provider.

Models are defined in models.dev (see anomalyco/models.dev#1275).
Keep only the latest version of each model family with tool_call support:
- Anthropic (3): claude-opus-4.6, sonnet-4.6, haiku-4.5
- OpenAI (5): gpt-5.4/pro/mini/nano, gpt-5.3-codex
- Google (3): gemini-3.1-pro, 3-flash, 3.1-flash-lite
- DeepSeek (1): deepseek-v3.2
- Qwen (3): qwen3.5-plus/flash, qwen3-coder-plus
- Doubao (2): doubao-seed-2.0-pro/code
- MiniMax (2): minimax-m2.7/highspeed
- GLM (2): glm-5/turbo
- Kimi (1): kimi-k2.5
@Maklu Maklu force-pushed the feat/add-ofoxai-provider branch from 6e22c8f to 645cc75 Compare March 26, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant