For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenCode

Kickstart OpenCode with Infron

Account & API Keys Setup

The first step to start using Infron is to create an account and get your API key.

Installation OpenCode

# Official install script
curl -fsSL https://opencode.ai/install | bash

# npm
npm install -g opencode-ai

# pnpm
pnpm install -g opencode-ai

# bun
bun install -g opencode-ai

# macOS / Linux Homebrew tap
brew install anomalyco/tap/opencode

# Verify
opencode --version
opencode

Full docs: opencode.ai/docs

Inside the TUI, run /connect, choose Other, set provider id to infronai, then paste the Infron API key. Alternatively use INFRON_API_KEY through environment variables.​​

Infron model discovery

opencode.json setup

By default, the customer provider configuration in Opencode enables only text‑chat capabilities. To enable the full range of model features (such as multimodal file inputs), you must manually add the following configuration items to the configuration file.

cd ~/.config/opencode/

After completing the configuration, you can start the Opencode CLI.

Basic Usage

Run opencode in a repo to init: It prompts project context, then use slash commands in the TUI.​

  • /connect: Link Infron (auto-detects env vars).

  • /models: List/select (e.g., Claude 3.5 Sonnet or Gemini 3 Flash).

  • /init: Scans repo, suggests plan (e.g., "Analyze main.rs and create layers").

  • Core flow: /plan for outline, /build to generate/run code, /improve for refinements.

Last updated