May 2, 2026

OpenCode Now Runs Inside the 1DevTool Workspace

OpenCode is now a first-class agent in 1DevTool. Launch the full TUI inside your workspace, resume sessions from the Resume dialog, autocomplete slash commands, and find your OpenCode prompts in Prompt History.

1DevTool Team • 5 min read
OpenCode Now Runs Inside the 1DevTool Workspace

OpenCode is a fast, keyboard-driven AI coding CLI with its own session history, slash commands, and a TUI that takes over the terminal. Until now, running it meant opening a separate terminal window or tab, keeping it alive in its own pane somewhere, and Cmd+Tab-ing back to 1DevTool whenever you wanted to see your code, your browser, or your database alongside it.

If you wanted to resume an OpenCode session, you had to remember the session ID or dig through its own session list in a separate terminal. And if you used Prompt History to search across your AI conversations, OpenCode prompts weren't there — because 1DevTool didn't know they existed.

OpenCode Runs Inside the Workspace, Like Every Other Agent

OpenCode is now a first-class agent in 1DevTool. Pick it from the agents grid in the New Terminal dialog and the full OpenCode TUI launches in a terminal panel inside your workspace — next to your editor, next to Claude Code or Codex, next to your HTTP client or database browser.

Mouse support, scroll, full-screen redraws — all of it behaves the way it does in a standalone terminal. The only thing that changes is that you no longer leave 1DevTool to use OpenCode.

How It Works in Practice

Launch OpenCode from the agents grid

Click the + button to open a new terminal and OpenCode appears in the agent picker alongside Claude, Codex, Gemini CLI, and Amp. Select it and a terminal opens running the OpenCode TUI. You can launch multiple OpenCode terminals in different projects, tile them with other agents, or run one in the background while you work in another.

Slash commands autocomplete in the prompt overlay

Hit Cmd/Ctrl+I on an OpenCode terminal to open the Agent Input overlay — the same overlay that works for Claude Code and Codex. Start typing / and the picker lists every built-in OpenCode slash command: /models, /sessions, /init, /themes, /connect, /share, /undo, /redo, /compact, /export, /exit, and more, each with a short description pulled from the OpenCode docs.

This means you don't need to remember OpenCode's command set. The picker surfaces the right command as you type.

Resume OpenCode sessions from the Resume dialog

The Resume dialog now reads OpenCode's local session database alongside Claude, Codex, Gemini, and Qwen sessions. Filter by "OpenCode", browse by project, or search by content to find any past OpenCode conversation.

Picking an OpenCode session spawns a terminal that opens directly into that conversation using OpenCode's native -s flag. Reopening the terminal later relaunches into the same session automatically — no stale --resume artifacts, no manual session ID lookup.

OpenCode prompts appear in Prompt History

The "Sync local" button in Prompt History and the Resume dialog now imports your OpenCode prompts alongside everything else. Search across every agent's history — Claude, Codex, Gemini, OpenCode — in one place. The prompt you sent last week in an OpenCode session shows up the same way as a Claude prompt from yesterday.

Before vs After

TaskBeforeAfter
Run OpenCodeOpen separate terminal, Cmd+Tab to switchOpen as agent terminal in 1DevTool
Resume an OpenCode sessionFind session ID, run opencode -s <id> manuallyResume dialog → filter by OpenCode → click
Use slash commands in OpenCodeType from memory or check docsCmd+I/ → pick from autocomplete
Search OpenCode prompts in historyNot available in 1DevToolSync Local → searchable in Prompt History
Run OpenCode next to ClaudeTwo windows, constant switchingTwo terminal panels, side by side

Who Benefits Most

Developers who use multiple AI coding tools — If you already run Claude Code and OpenCode in separate terminals, having them both inside 1DevTool means you can keep them side by side, compare responses, and resume either session from the same place.

OpenCode users evaluating other agents — The Resume dialog's cross-agent resume (added in v1.15.2) applies here too: start a session in OpenCode, resume it in Claude, or vice versa. One click to hand a conversation to a different model.

Anyone who forgets slash commands — Even if you know OpenCode well, the autocomplete in the prompt overlay removes the "what was that flag again?" moment for less-used commands.

Try It

Open a new terminal in 1DevTool, find OpenCode in the agents grid, and launch it. The TUI comes up in the panel. Hit Cmd+I to open the prompt overlay and type / to see the command list. When you're done, close the dialog and the session is waiting in your Resume list — ready to pick up in OpenCode or any other agent you prefer.