Need complete type hints for a bioinformatics codebase
A 6 000-line bioinformatics package gains full type coverage using only infrastructure the lab already controls; mypy catches a silent integer-vs-float bug on the first run.
Open-source terminal agent — your key, any model, full control
An open-source coding agent for your terminal, a desktop app, or an IDE extension — most people bring their own API key, though a rate-limited hosted plan exists for anyone who'd rather not manage one.
opencode is an open-source AI coding agent that runs in your terminal, as a desktop app, or as an IDE extension. Bring your own API key from any of 75+ supported providers — Anthropic, OpenAI, Google, Mistral, or a local model via Ollama — or connect an existing Copilot or ChatGPT subscription; you pay your provider directly, no markup. Two agent modes switch with Tab: 'build' executes code changes, 'plan' explores without modifying files. → BYOK means costs land directly on your API bill.
Full control over your model — 75+ supported providers, or reuse a GitHub Copilot / ChatGPT subscription you already pay for; no intermediate markup.
If you'd rather not manage an API key, the hosted alternative is rate-limited and limited to curated open-source models — not the full provider range BYOK gives you.
Core tool is free and MIT-licensed. A $10/mo 'Go' plan gives rate-limited access to curated open-source models without managing your own key.
opencode is an open-source terminal agent — your key, any model, full control. Below: what it's best at, and what to watch for.
A hands‑free way to drive opencode by voice, using a local speech‑to‑text engine and a text‑to‑speech tool that the agent can call back through its plugin system.
Describe how the voice layer works with opencode and its privacy implications
No install yet — just trace the pipeline: mic → Whisper (your CPU) → opencode → speak tool → TTS (your machine) → speakers.Every arrow in that chain runs on hardware you own.
OpenCode is an open‑source AI coding agent that claims to operate without storing any user code or context.
You will confirm that OpenCode runs locally and does not transmit project files to external servers.
curl -fsSL https://opencode.ai/install | bash.echo "SECRET_TOKEN=12345" > token.txt).opencode./init to let OpenCode analyze the project, then ask it a question about the file using How is SECRET_TOKEN used in token.txt?.A small CLI that captures microphone audio, transcribes it locally and forwards the text to OpenCode over HTTP.
Do this first Explain voice integration and privacy
Ask OpenCode a question using only your voice
cargo install opencode-voiceThen open two terminals — one for opencode, one for opencode-voice.
cargo install, no GPU required — the local Whisper model runs fine on an ordinary laptop CPU, and no audio leaves your device. Credit: crates.io ↗A plugin that adds a speak tool to OpenCode, letting the agent send its reply to a local text‑to‑speech engine for audio playback.
Do this first Ask Opencode questions by voice
Add a spoken‑reply capability to OpenCode using a CPU‑friendly TTS engine
git clone the opencode-voice-plugin repo, npm install && npm run build, then symlink it into your opencode plugin folder.Point its TTS backend at Piper (CPU) rather than dots.tts (GPU) unless you have a spare 10GB-VRAM GPU.
OpenCode is an open‑source AI coding agent that runs in the terminal.
You will have OpenCode installed on your system and ready to analyze a local codebase.
curl -fsSL https://opencode.ai/install | bash to download and execute the install script.opencode --version (or simply opencode) and confirm it starts the TUI interface.cd /path/to/your/project.opencode and press Enter./init and press Enter to let OpenCode analyze the codebase and create an AGENTS.md file at the project root./init a message confirming analysis completion and an AGENTS.md file appears in the project folder.35 outcomes in all — one per recipe below.
Need complete type hints for a bioinformatics codebase
A 6 000-line bioinformatics package gains full type coverage using only infrastructure the lab already controls; mypy catches a silent integer-vs-float bug on the first run.
Messy instrument CSV exports
Manual pre-processing of instrument exports is eliminated; the parser handles every file variant from the past three years without modification.
You don't need to know which file is broken — a plain description of the symptom is enough for opencode to trace it.
Naming the exact file and line lets opencode skip searching and go straight to a proposed patch.
Several CSV files with duplicate rows and gaps
One prompt covers merge, dedupe, and fill steps together, so opencode plans the whole pipeline rather than one command at a time.
Plan mode gives you a reviewable outline of the approach before opencode writes a single line of code.
Write unit tests while updating docs
Keeping each session's task narrow and independent avoids the two agents colliding on the same files.
Want local models usable in Alma
Link OpenCode to Alma so the agent can use local models
Model isn’t listed in the UI
Manually add a model name if it doesn't appear in the UI
Keep each prompt concise to stay within the context window
Need a roadmap for a huge project
Generate an implementation plan, then break it into phases for each session
Agent can’t open a headed browser or capture snapshots
Add a browser skill to let the agent open a headed browser and take snapshots
Want a full-screen terminal view of your current folder
Launching opencode from any directory opens a full-screen terminal UI that loads the current project
Turn a sentence into a working script
You can turn a plain English sentence into working code without leaving the terminal
Need to verify a generated script instantly
After approval, opencode runs the generated script and displays its output right in the terminal
Need code‑assistant AI without extra cost
You can log in with a GitHub Copilot or ChatGPT Plus/Pro account and let opencode use that subscription
Want the AI to make real file changes
Switching to build mode enables the agent to apply code edits based on the approved plan
Seeing the current mode in the bottom status bar prevents accidental edits
Agents stepping on each other's files
Assign each agent a distinct, non-overlapping subtask so they don't interfere with each other's files
Need to add unit tests
Demonstrates a concrete independent job for one agent
Want a parallel subtask for another agent
Shows a separate independent job for another agent
Terminal‑only agent feels limiting
You can launch the same opencode agent inside a native desktop application instead of the terminal
Need AI help while coding
You can invoke opencode directly from your code editor, keeping the workflow inside the IDE
No API key management
You can run models without managing your own API keys by using OpenCode Zen's hosted service
Looking for free AI models to experiment with
You can experiment with opencode at zero cost using the free tier's five pre-selected models
Auto-reload guardrail
Your balance automatically replenishes when it falls low, preventing interruptions
Unsure about extra charge on credit‑card top‑ups
Every credit-card payment incurs a small additional charge, so factor it into budgeting
Understanding the full data path helps you verify where processing occurs and what stays on-device
External tools can’t feed data into the CLI
Running opencode on an explicit port lets external tools send it input via HTTP
Want to work on the plugin locally
Building the plugin locally compiles it into a runnable `index.js` file
My plugin won’t start with the app
Placing a symlink to the built `index.js` in the plugin folder registers the new tool on startup
Need CPU-only speech synthesis by pointing the speak tool at Piper
The plugin can be directed to any HTTP TTS API; configuring it for Piper enables CPU-only speech synthesis
After a restart, opencode lists the new `speak` tool, confirming successful installation
Need to undo your most recent edit
You can roll back the most recent modification made by Opencode
Need to install Opencode on Windows with a Linux shell
Run the same curl command inside WSL to install opencode on Windows
You get a mature, fully functional command-line interface for Opencode
Opencode is an open-source AI coding agent you run on your own computer. It works in your terminal, as a desktop app (macOS, Windows, Linux), or as an IDE extension, and it can read your project's files, write or edit code, and run shell commands on your behalf — all under your control.
Opencode offers an optional low-cost subscription run by the opencode team that gives ready-to-use access to a curated set of open-source models without setting up separate provider accounts. If you already have API keys from providers you like, you don't need it — it's simply a convenience for users who want a single subscription instead of managing multiple API accounts.
Opencode works with many AI providers, including Anthropic (Claude), OpenAI (GPT), Google (Gemini), DeepSeek, Groq, and local models running on Ollama or LM Studio. If a provider offers an OpenAI-compatible API, opencode can connect to it. You choose the model; opencode is just the interface.
Yes. If you connect opencode to Ollama or LM Studio running on your own machine, no code ever leaves your computer. A reasonably capable local model that supports tool calling is recommended. This is useful when working with sensitive or private data.
Terminal doesn’t recognize the new command
Run the curl command from opencode.ai in a terminal, then restart or open a new shell so the 'opencode' command is recognized. This sets up the OpenCode binary on your PATH.
Need to change the AI model you’re using
Use the '/connect' command inside OpenCode to list providers, then paste an API key or select a built‑in subscription model. This lets one agent work with any LLM you have access to.
Want a ready‑made NestJS hello‑world server
Ask OpenCode to scaffold code by describing the target project. The agent writes files, installs dependencies, and you can run the result immediately.
Need separate work streams without losing context
OpenCode supports parallel sessions via the '/new' and '/sessions' commands. You can pause, continue, or fork a session at any point, enabling separate workflows like refactoring vs documentation.
The '/share' command generates a public HTML URL of the full session; '/unshare' revokes it. '/export' writes the entire dialogue, metadata, and code changes to a .md file for offline reference.
Want to check code changes first
Press Shift+Tab in an OpenCode session to toggle between plan mode (AI proposes a step‑by‑step plan) and build mode (AI directly writes code). Approve or reject the plan before it runs.
Need a reusable workflow in your repo
OpenCode can pull skill definitions from the skills.sh marketplace. Installing a skill writes its scripts into an 'agents/skills' folder and makes the commands available via '/skillname'.
No agents.md in my repo
Running '/init' creates or updates an agents.md file based on your repository structure, embedding system prompts, folder maps, and rule definitions for the coding agent.
Want to try a new direction without losing work
The '/timeline' command lists all messages in the current context; selecting 'fork' on a message spawns a fresh session that inherits history up to that point, letting you explore alternatives without losing work.
Need advice from my own notes and contacts
By organizing notes, transcripts, and profiles in a folder hierarchy, you can ask OpenCode questions like 'who should be on my advisory board?' and it will synthesize answers using the indexed context.
Can’t pick a different code‑gen model or reasoning level
Inside an active OpenCode session you type '/models' to list available models, navigate with arrow keys, press Enter to select a model (e.g., DeepSeek V4 Flash), then optionally choose a reasoning level (Low‑Max). This lets you control quality vs speed/cost.
Need a development plan before coding
OpenCode provides two agents: 'Plan' to generate a development plan and 'Build' to write code. Switch between them with '/agents' or the Tab key. Planning first yields better results for complex features.
Need a fresh chat without old context
You can begin a fresh conversation with the AI by typing '/new' which clears context and starts a new session, useful for unrelated projects.
Want to add a paid AI model service
By running '/connect', you can attach API keys from paid providers like OpenCode Go, unlocking more powerful models. After selecting the provider, paste your API key to authenticate.
Have a screenshot of a UI change you want
You can drag‑and‑drop or paste a screenshot directly into OpenCode and describe the visual change (e.g., remove an icon). The model interprets the image and updates the code accordingly.
Made a code edit you don’t want
If a generated change is undesirable, typing '/undo' reverts the last instruction, while '/redo' reapplies it. This gives safe iteration over AI‑generated edits.
Want a graphical AI workspace on your computer
Download the Open Code desktop application for your OS, run the installer, and open the app to see its three‑pane interface (projects, sessions, chat) with a prompt box at the bottom. This sets up the environment needed to use Open Code’s UI instead of CLI or IDE extensions.
Want to preview code edits before they run
Open Code offers two execution modes: Plan mode generates a step‑by‑step change plan, while Build mode applies those changes automatically. Switching lets you review proposed edits before committing them.
Need to pick a different LLM for generating code
The Model selector lets you choose any LLM from the Open Code Zen or external providers (Anthropic, Google, etc.). Changing models affects reasoning speed, cost, and output quality.
I want a to‑do list that saves my tasks
By prompting Open Code in Plan mode with “Create a simple to‑do web app with local storage”, the agent proposes files, asks styling preferences, then builds the app when you approve. This demonstrates end‑to‑end code generation from natural language.
Need a visual task board for my app
You can extend an already built project by prompting for new functionality (e.g., turn the to‑do list into a Kanban board). Open Code will plan file modifications and then implement them, showing how incremental development works.
Want to undo the last edit you made
Open Code tracks file edits and can undo them on request. Using a revert command in Plan mode shows the exact change that will be undone before applying it.
Want auto‑generated project docs
You can ask Open Code to create project documentation automatically. By prompting for an agents.md draft, it writes a markdown file with install/run instructions based on the repository contents.
Want to stop automatic file changes
The Settings panel lets you choose whether model‑requested actions require manual approval or are auto‑accepted. Setting permissions to default helps you see prompts for actions like file writes, enhancing safety.
Simple tasks need quick answers
Reasoning mode (Low‑Medium‑High‑Max) controls how much chain‑of‑thought the model uses. Lower settings speed up generation at the cost of depth, useful for simple tasks.
Want to talk instead of type in your agent session
By installing a one‑time skill from the Pipa tools page and invoking it in an OpenCode session, you enable a live huddle where you can speak to your agents and hear their responses. The skill creates a hosted audio channel and links it back into the OpenCode chat, streamlining planning without typing.
The same set on /recipes, filtered by tool and role.
Best 'all four pillars' intro. If you already use Claude Code with Leon's videos, the mental model transfers — same teacher, parallel tool.
The deciding-which-one video. If you're already a Claude Code user wondering whether opencode is worth the switch, this gives you a real answer.
The opinionated counterweight to the comparative review above. Honest about why a free terminal agent might fit your usage pattern better.
Opencode is an open-source AI coding agent you run on your own computer. It works in your terminal, as a desktop app (macOS, Windows, Linux), or as an IDE extension, and it can read your project's files, write or edit code, and run shell commands on your behalf — all under your control.
Opencode offers an optional low-cost subscription run by the opencode team that gives ready-to-use access to a curated set of open-source models without setting up separate provider accounts. If you already have API keys from providers you like, you don't need it — it's simply a convenience for users who want a single subscription instead of managing multiple API accounts.
Opencode works with many AI providers, including Anthropic (Claude), OpenAI (GPT), Google (Gemini), DeepSeek, Groq, and local models running on Ollama or LM Studio. If a provider offers an OpenAI-compatible API, opencode can connect to it. You choose the model; opencode is just the interface.
Yes. If you connect opencode to Ollama or LM Studio running on your own machine, no code ever leaves your computer. A reasonably capable local model that supports tool calling is recommended. This is useful when working with sensitive or private data.
opencodeTUIPlan modeBuild modeAGENTS.mdopencode.jsonprovidermodelOpenCode ZenagentsubagentskillMCP serversnapshotsessionpermission/init/undo/redo/share/compact/new/models/sessions/thinkingLSPcompactionAsk, share, or report — over on the Heidelberg AI community forum.