TUI
Use the interactive OpenABCode terminal interface for coding sessions.
Start the TUI
OpenABCode provides an interactive terminal interface for working on your projects with an LLM.
Running OpenABCode without a command starts the TUI for the current directory. You can also pass a project path to start the TUI in a specific working directory.
This is already routing mode. The TUI uses OpenABCode's routed runtime by default, so model selection can switch between BYOK, hosted, and local-compatible candidates when a turn starts.
openabcode
openabcode /path/to/project Connect providers
Use /connect in the TUI to add provider credentials. OpenABCode keeps the opencode provider workflow, then routes across the configured models by default.
/connect Initialize a project
Run /init from a project to create or update AGENTS.md. Commit that file so OpenABCode understands project structure, conventions, and coding rules.
/init Prompt
Once you are in the TUI, type a message and press Enter to start a coding turn.
Give me a quick summary of the codebase. File references
Type @ in the prompt to search project files and attach them as context.
Explain the auth flow in @src/server/auth.ts Bash commands
Start a message with ! to run a shell command and include the output in context.
!bun test packages/core/test/openabcode-doctor.test.ts Models
Use /models to list and switch models. You can choose a specific model manually, or leave the default and let OpenABCode route each turn.
- /models lists available provider/model values.
- ctrl+x m opens model selection with the default leader key.
- Manual model selection is respected as an override when eligible.
Plan and build
Use the Tab key to switch between planning and building when you want to review a plan before edits. Build mode can edit files and run tools subject to permissions.
<TAB> Undo and redo
Use /undo when a change is not what you wanted. Use /redo to restore a previously undone change.
/undo
/redo Sessions
Use /sessions to list, resume, continue, or switch sessions. This keeps long-running coding work organized by project.
/sessions Editor and export
Use /editor to compose a longer prompt in your EDITOR. Use /export to export the current conversation to Markdown.
export EDITOR="code --wait"
/editor
/export Commands
Slash commands open common TUI actions. OpenABCode keeps the opencode command surface and layers routing on top.
- /connect adds provider credentials.
- /models lists and switches models.
- /sessions resumes previous work.
- /compact summarizes the current session.
- /themes and /keybinds customize the TUI.
- /exit quits the TUI.