Coding agent · OpenCode

OpenCode

An open-source terminal coding agent that works with many model providers.

  • Command opencode
  • Runs in 9 StoicSoft apps
  • Last verified 2026-11-30

Install and sign in

macOS
npm i -g opencode-ai
Linux
npm i -g opencode-ai
Windows
npm i -g opencode-ai

Sign in

Go to your project folder and run:

opencode

The first run walks you through signing in. After that, the same command starts a session.

Docs: opencode.ai/docs/troubleshooting/

Run it once, without the chat screen

One-shot mode answers a single request and exits. It is how StoicSoft apps run OpenCode, and how you put it in a script.

opencode run "Explain how this project is organised"

Pick up where you left off

Resume a past session with opencode -s <session-id>.

Choose a model

Add --model <model>, for example opencode/claude-sonnet-5, opencode/gpt-5.5, opencode/qwen3-coder. StoicSoft apps read the current list from the agent itself.

Reasoning effort levels: minimal, high, max.

Permission levels

How much OpenCode may do without asking you. Start low; raise it once you trust it on this project.

LevelWhat it meansFlag
Read onlyLooks, answers, changes nothing.No verified flag
Edit filesEdits inside the project folder, asks before commands.Default, no flag needed
Edit and run commandsEdits and runs commands such as your tests.--auto (version 1.17.12+)
Full autoNo questions asked. Use in a throwaway folder or sandbox.--auto (version 1.17.12+)

“No verified flag” means the StoicSoft catalog has no tested command-line switch for that level. The agent may still offer it in its own settings; otherwise it asks you each time.

OpenCode in StoicSoft apps

9 apps run the OpenCode you installed, signed in to your own account.

  • Runs coding agents as terminals side by side, resumes past sessions, switches models, and lets one agent hand a task to another.

  • Its agent chat drives the CLI you pick and hands it the browser’s own tools over MCP.

  • “Your coding agent” is an AI provider: answers about your machine come from the CLI you are signed in to, so no API key is stored.

  • Chat with your vault through the agent you pick, and feed saved context into your agents.

  • Describe a screen, slide or brand kit; the agent you pick writes it as real files, with a live preview and a quality gate.

  • Dictate the brief; your agent writes the script and the scenes while the app voices and renders them.

  • Turns your recorded clicks and screenshots into a written walkthrough, using your agent CLI or an API key.

  • Its chat runs the agent you pick to do file jobs and hands the results back as files.

  • Can use your coding agent as its AI provider for writing and research, instead of an API key.

The other direction: OpenCode calling the apps

Every StoicSoft app ships an MCP server. In an app’s agent access screen, pick OpenCode and the app adds itself to this file:

macOS
~/.config/opencode/opencode.json
Linux
~/.config/opencode/opencode.json
Windows
%USERPROFILE%\.config\opencode\opencode.json

Who checked these facts

Each record is a real run of OpenCode, by the app or test station that relies on it.

Checked byOpenCode versionSystemDate
1DevTool—macOS—
1DevTool1.17.4Windows2026-09-16
1DevTool1.18.30macOS—
1DesignTool1.18.30macOS—
StoicSoft test station1.19.6macOS2026-11-30

Binary names: macOS: opencode · Linux: opencode · Windows: opencode.cmd, opencode.exe. Also known as opencode-ai.

OpenCode: common questions

How do I install OpenCode?
Run npm i -g opencode-ai in a terminal. Then type opencode in your project folder; the first run asks you to sign in.
How do I run OpenCode without the interactive screen?
Use its one-shot mode: opencode run "Explain how this project is organised". It prints the answer and exits, which is how StoicSoft apps and scripts run it.
Which StoicSoft apps support OpenCode?
1DevTool, StoicBrowser, 1MachineTool, 1AIVault, 1DesignTool, 1VideoTool, 1ShowcaseTool, 1FileTool, 1MarketingTool. It can also call every StoicSoft app over MCP; the apps write themselves into its settings file for you.