opencode

Manage OpenCode configuration, credentials, and Zen API model discovery.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill opencode-cogni-ai-ou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/opencode
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill opencode-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you manage OpenCode configuration, credentials, and locate the supported model list without guessing file locations or maintaining outdated model inventories.

Core Features & Use Cases

  • OpenCode XDG-aware directory handling: Prevents mistakes by guiding you to the correct configuration, data, cache, and state locations.
  • OpenCode Zen API model discovery: Ensures you can programmatically fetch the latest available models instead of relying on hardcoded lists.
  • Credential safety guidance: Reduces the risk of accidentally committing authentication data to repositories.

Quick Start

Use the opencode skill to fetch the current list of OpenCode Zen API models at https://opencode.ai/zen/v1/models.

Frequently Asked Questions about opencode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the correct OpenCode configuration directory using XDG rules?

OpenCode configuration management relies on XDG base directory rules to locate correct paths for configuration, data, cache, and state files. This prevents mistakes by guiding you to the exact compliant directories instead of guessing file locations.

How do I get a list of supported AI models for OpenCode Zen API?

AI model discovery for OpenCode uses the Zen API endpoint at https://opencode.ai/zen/v1/models. You can programmatically fetch the latest available models from this endpoint during setup or integration instead of maintaining outdated hardcoded inventories.

How do I keep credentials safe when setting up OpenCode?

Credential safety during OpenCode setup requires avoiding the persistence or publication of sensitive authentication data. You must respect XDG base directory rules and ensure auth data is never accidentally committed to repositories.

Can I verify supported models programmatically during AI agent workflows?

Programmatically verifying supported models during AI agent workflows is supported through the Zen API model discovery endpoint. It fetches the current model list dynamically, ensuring integration accuracy without relying on static lists.

What is the best way to manage OpenCode configuration for AI agent integration?

The best way to manage OpenCode configuration is by applying XDG-aware directory handling and Zen API model discovery. This combination locates correct file paths and dynamically verifies available models for seamless AI agent workflows.