gigacode-0.4.2 is not a library.
How It Works
┌─ Gigacode ────────────────────────────────────────────────────────┐
│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
│ │ OpenCode TUI │───▶│ Sandbox Agent │───▶│ Claude Code / │ │
│ │ │ │ │ │ Codex / Pi / Amp │ │
│ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
└───────────────────────────────────────────────────────────────────┘
- Sandbox Agent SDK provides a universal HTTP API for controlling Claude Code, Codex, Pi, and Amp
- Sandbox Agent SDK exposes an OpenCode-compatible endpoint so OpenCode can talk to any agent
- OpenCode connects to Sandbox Agent SDK via
attach
OpenCode Models vs Gigacode Agents
- OpenCode supports switching between inference providers (Anthropic, OpenAI, etc.). This is OpenCode talking directly to the models with its own tools, system prompts, and agentic loop.
- Gigacode automates other coding agent harnesses, so it's using the exact same logic that you would if you ran Claude Code, Codex, Pi, or Amp natively.
OpenCode (native): Model → OpenCode's tool loop → result
Gigacode: Model → Claude Code / Codex / Pi / Amp CLI → result
This means you get each agent's specialized capabilities (such as Claude Code's Read/Write/Bash tools, Codex's sandboxed execution, and Amp's permission rules) rather than a single tool loop with different models behind it.
Install
macOS / Linux / WSL (Recommended)
|
npm i -g
bun add -g
# Allow Bun to run postinstall scripts for native binaries.
npx
bunx
Note: Windows is unsupported. Please use WSL.
Usage
TUI
Launch the OpenCode TUI with any coding agent:
Web UI
Use the OpenCode Web UI to control any coding agent from the browser.
OpenCode SDK
Use the @opencode-ai/sdk to programmatically control any coding agent.