A polished local bridge that launches Claude Code against OpenCode Go models through a lightweight local proxy.
- installs a daily-use
codegocommand - works on macOS and Linux
- asks for your OpenCode Go API key and preferred model on first run
- lets you change the model later with
codego --reconfigure - lets you validate your key with
codego --check-key - launches Claude Code in the folder you run it from
- clears and resets the terminal right before handing off to Claude Code
Default upstream configuration:
- OpenCode endpoint:
https://opencode.ai/zen/go/v1/chat/completions - OpenCode model:
glm-5.1 - Claude-facing shim model:
claude-sonnet-4-6
Download this repository, then run:
chmod +x install-codego.sh codego uninstall-codego.sh
./install-codego.shThe installer:
- removes previous
cc-glm/codegoinstalls - installs runtime files into
~/.codego - installs commands into
~/.local/bin - adds
~/.local/binto common shell startup files if needed - immediately launches
codegounless you pass--install-only
Install without launching:
./install-codego.sh --install-onlyRun Codego from the project folder you want Claude Code to open:
cd /path/to/project
codegoUseful commands:
codego --reconfigure
codego --reset-key
codego --check-key
codego --doctor
codego --logs
codego --stop
codego --choose-folder
codego --helpOn first setup, Codego asks which OpenCode Go model to use.
Built-in choices:
glm-5.1(recommended)glm-5- custom model ID
You can change the saved model later with:
codego --reconfigureCodego uses the best available secret storage automatically:
- macOS: Keychain
- Linux: Secret Service via
secret-tool, thenpassif available - fallback:
~/.codego/config.envwith restricted permissions
codego --reset-keyThis now:
- asks for confirmation before deleting the saved key
- prompts for the replacement key once
- does not prompt again right before Claude Code starts
codego --check-keyThis sends a tiny upstream request and classifies the result.
codego --doctorUseful when debugging platform, config, secret backend, or proxy issues.
codego-uninstallOr from the repo:
./uninstall-codego.shThis removes:
~/.codego~/.local/bin/codego~/.local/bin/codego-uninstall- legacy
cc-glminstall artifacts if present
- Bash
- curl
- Node.js 18+
- Claude Code
- OpenCode Go API key
If Claude Code is missing, Codego can offer to install it via the official installer.
MIT — see LICENSE.