Skip to content

Feature: OpenCode Zen provider integration (free models) #1302

@vRobM

Description

@vRobM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions