Open
Conversation
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).
6 tasks
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
6e22c8f to
645cc75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = truefor coding agent compatibility:@ai-sdk/openai-compatiblehttps://api.ofox.ai/v1OFOXAI_API_KEYHow did you verify?
bun run validate— OfoxAI provider parsed correctly with all 22 models, no errors/v1/modelsAPICompanion PR for opencode integration: anomalyco/opencode#19210