# OpenCode Zen

## Overview

OpenCode Zen represents a **curated list of models** recommended by the OpenCode team for coding agents. It functions as an optional hosted model access pathway requiring an API key and the `opencode` provider, currently in beta status.

## Setup Instructions

**CLI Configuration (Interactive):**

```bash
openclaw onboard --auth-choice opencode-zen
```

**CLI Configuration (Non-Interactive):**

```bash
openclaw onboard --opencode-zen-api-key "$OPENCODE_ZEN_API_KEY"
```

**Configuration File:**

```json5
{
  env: { OPENCODE_ZEN_API_KEY: "sk-..." },
  agents: { defaults: { model: { primary: "opencode/claude-opus-4-5" } } },
}
```

## Key Details

The service accepts either `OPENCODE_ZEN_API_KEY` or `OPENCODE_API_KEY` for authentication. Users establish their account through Zen's login portal, configure billing information, and retrieve their API credentials from the platform.

## Billing Model

The service operates on a per-request pricing structure. Cost details and usage monitoring are available through the OpenCode dashboard.
