agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Feature: OpenCode Zen provider integration (free models)

Open vRobM opened this issue 8 months ago • 5 comments

Feature Request: OpenCode Zen Provider Integration

Summary

Add native support for OpenCode Zen as a model provider in Agent Zero, enabling access to free models like Big Pickle, MiMo V2 Pro Free, MiniMax M2.5 Free, and others without requiring separate API keys.

Motivation

OpenCode Zen (https://opencode.ai/zen) provides a curated set of models optimized for coding agents, including several free models. These models are served through an OpenAI-compatible API at https://opencode.ai/zen/v1/chat/completions.

Currently, using OpenCode Zen with Agent Zero requires:

  1. Setting up a local proxy to translate between LiteLLM's expected format and OpenCode's API
  2. Managing API keys manually
  3. Dealing with provider detection issues (Ollama vs OpenAI format mismatches)

Native integration would eliminate this complexity.

Proposed Implementation

Add a new provider entry in conf/model_providers.yaml:

opencode_zen:
  name: OpenCode Zen
  litellm_provider: openai
  kwargs:
    api_base: https://opencode.ai/zen/v1

The API key would be obtained from https://opencode.ai/auth and stored as OPENCODE_ZEN_API_KEY.

Available Models (Free)

Model ID Notes
Big Pickle big-pickle Stealth model, rotating capabilities
MiMo V2 Pro Free mimo-v2-pro-free Xiaomi's coding model
MiMo V2 Omni Free mimo-v2-omni-free Multimodal variant
MiniMax M2.5 Free minimax-m2.5-free Strong coding model
Nemotron 3 Super Free nemotron-3-super-free NVIDIA's model

API Details

  • Endpoint: https://opencode.ai/zen/v1/chat/completions
  • Format: OpenAI-compatible
  • Auth: Bearer token (from OpenCode Zen account)
  • Models list: https://opencode.ai/zen/v1/models

Benefits

  • Free models for development/testing
  • Curated models optimized for coding agents
  • Single API key for multiple high-quality models
  • No local proxy or Ollama setup required
  • OpenCode Zen handles provider selection and optimization

References

  • OpenCode Zen docs: https://opencode.ai/docs/zen/
  • OpenCode Zen auth: https://opencode.ai/auth
  • Pricing: Free models available, paid models at cost

vRobM avatar Mar 22 '26 00:03 vRobM

I was just trying to pull this off. Native support for sure!

anthonyabraira avatar Mar 25 '26 17:03 anthonyabraira

Big Pickle Zen Is nothing short of amazing. Qwen models are stupod (sorry , no offense just facts)

Since zen is maintained and run for OpenCode, it may not be cool to run as your agent-zero main.

I run it along side my Agent-Zero on Omarchy Linux, with Ollama serving up qwen3-coder:30b local tokens. Make sure num_ctx params are at least 49,152 (48k) to have complete error free chat sessions.

edhooksjr-ai avatar Mar 28 '26 23:03 edhooksjr-ai

@anthonyabraira you can setup opencode as a proxy to A0, done.

@edhooksjr-ai what about Big Pickle do you find amazing?

Actually they encourage it as they need the feedback for their model sponsors.

See above for how to run it through opencode proxy OR just ask your agent.

vRobM avatar Mar 29 '26 02:03 vRobM

I am a Fan of Native integration and find BP Free excellent after Opencode use (Big Pickle) for setting up all aspects of my workstation migration from MacOS to Arch Linux and in building my ai lab system. (BP Free opencode is solving Agent-Zero issues for me while my main A0 qwen3-xoder:30b is still thinking about it and taking wrong conclusions from presented facts.)

The Zen model is clever, efficient compared to other Tool models that i have tried while setting up my lab. I tried a LOT looking for a Local Hosted replacement for BP Zen.

The WORST so far was a local (ollama) served Nemo model. I considered a Buy for NVDIA stock, as That Nemo System will be FARMING dollars with low token efficiency.

Contempt Absent Investigation is not a Virtue Anywhere. Be Kind.

edhooksjr-ai avatar Mar 29 '26 12:03 edhooksjr-ai

Closing due to inactivity of 90 days.

github-actions[bot] avatar Jun 28 '26 04:06 github-actions[bot]