.github
fix(ci): add environment setup and sanitize log paths
.husky
fix: update pre-push hook to allow caret version differences (#9876)
.opencode
ignore: switch commit model to kimi-k2.5 for improved command execution reliability
.vscode
docs(contributing): Add "Setting up a Debugger" section (#4421)
github
docs: add use_github_token to example (#9120)
infra
wip: zen (#11343)
logs
big format
nix
chore: update nix node_modules hashes
packages
fix(opencode): resolve all rebase-introduced test failures
patches
fix: terminal serialization and isolation
script
ci: skip force push when beta branch is unchanged
sdks
release: v1.1.48
specs
chore: cleanup
themes
chore: generate
.editorconfig
chore: add .editorconfig (#536)
.gitignore
chore: cleanup nix (#8964)
.prettierignore
desktop: fix rust build + bindings formatting
AGENTS.md
fix(opencode): resolve all rebase-introduced test failures
bun.lock
feat(opencode): add Phase 2 Ink components (#11765, #11769, #11770, #11774)
bunfig.toml
Permission rework (#6319)
CONTRIBUTING.md
ignore: rm STYLE_GUIDE, consolidate in AGENTS.md
flake.lock
chore: update flake.lock (#9938)
flake.nix
fix(nix): restore native runners for darwin hash computation (#11495)
install
feat(install): respect ZDOTDIR for zsh config detection (#8511)
LICENSE
docs: cleanup casing
package.json
feat(opencode): implement Ink TUI foundation (#11763, #11764, #11766, #11767, #11776)
README.ar.md
docs: add Turkish README translation (#11524)
README.br.md
docs: add Turkish README translation (#11524)
README.da.md
docs: add Turkish README translation (#11524)
README.de.md
docs: add Turkish README translation (#11524)
README.es.md
docs: add Turkish README translation (#11524)
README.fr.md
docs: add Turkish README translation (#11524)
README.it.md
docs: add Turkish README translation (#11524)
README.ja.md
docs: add Turkish README translation (#11524)
README.ko.md
docs: add Turkish README translation (#11524)
README.md
fix(session): prevent orphaned task slots blocking allocation (#33) (#35)
README.no.md
docs: add Turkish README translation (#11524)
README.pl.md
docs: add Turkish README translation (#11524)
README.ru.md
docs: add Turkish README translation (#11524)
README.th.md
docs: add Turkish README translation (#11524)
README.tr.md
docs: add Turkish README translation (#11524)
README.zh.md
docs: add Turkish README translation (#11524)
README.zht.md
docs: add Turkish README translation (#11524)
SECURITY.md
docs: clarify that malicious config files are not an attack vector
sst-env.d.ts
wip: zen (#11343)
sst.config.ts
ci: fix
STATS.md
ignore: update download stats 2026-01-29
tsconfig.json
sync
turbo.json
test(app): session actions (#11386)

opencode

Opinionated AI coding agent for agentic workflows.

Based on OpenCode by Anomaly Co (MIT License)


What is this?

A lightweight fork of OpenCode optimized for single developers running agentic workflows. Think PM agents orchestrating specialist agents, with deep memory/context integration via remory.

Philosophy:

  • Opinionated defaults over endless configuration
  • Optimized for agentic orchestration patterns
  • Lightweight - stripped of enterprise bloat
  • Single developer friendly

Installation

# Clone
git clone https://github.com/randomm/opencode.git
cd opencode

# Install dependencies
bun install

# Build
cd packages/opencode && bun run build

# Install binary (adjust path for your platform)
cp dist/opencode-darwin-arm64/bin/opencode ~/bin/

# Linux x64
# cp dist/opencode-linux-x64/bin/opencode ~/bin/

Make sure ~/bin is in your PATH.


Quick start

# Navigate to your project
cd my-project

# Start opencode
opencode

On first run, you'll be prompted to configure your AI provider. Set your API key:

export ANTHROPIC_API_KEY="sk-..."
# or
export OPENAI_API_KEY="sk-..."

Configuration

Create opencode.json in your project root or ~/.config/opencode/config.json for global settings.

{
  "provider": {
    "anthropic": {
      "model": "claude-sonnet-4-20250514"
    }
  }
}

Key options:

  • provider - AI provider configuration (anthropic, openai, etc.)
  • mcpServers - MCP server integrations
  • instructions - Custom system instructions

Agents

Two built-in agents, switchable with Tab:

  • build - Full access agent for development work (default)
  • plan - Read-only agent for analysis and exploration

Use @general in messages to invoke the subagent for complex searches.


Differences from upstream

This fork focuses on:

  • Agentic workflows - Optimized for PM/specialist agent patterns
  • remory integration - Deep memory and context management
  • Minimal footprint - No desktop app, no VS Code extension, no npm publishing
  • Opinionated defaults - Less configuration, more convention

Removed from upstream:

  • Desktop application
  • VS Code extension
  • npm/brew/scoop publishing
  • Enterprise features

License

MIT License. See LICENSE.


Attribution

This project is a fork of OpenCode by Anomaly Co, licensed under MIT. We're grateful for their work on the original project.