oc is a TUI-based AI coding assistant with vim-like keybindings, session history, and interactive command menus.
curl -fsSL https://raw.githubusercontent.com/mehexi/OC/main/scripts/install.sh | bashDownload the tarball for your platform from releases, extract, and place oc in your PATH.
go install github.com/mehexi/OC/cmd/oc@latestRequires Go 1.26+.
oc
Starts the local server and opens the TUI. Type your question and press Enter. The assistant responds inline.
| Mode | Key | Action |
|---|---|---|
| — | / |
Show command menu |
| — | Esc |
Normal mode |
| Normal | i |
Insert mode |
| Normal | j/k |
Scroll down/up |
| Normal | gg/G |
Scroll to top/bottom |
| Normal | V |
Visual mode (select messages) |
| Visual | y |
Yank selected messages |
| Insert | Enter |
Send message |
| Insert | Ctrl+C |
Clear input / Quit |
| Command | Action |
|---|---|
/sessions |
Browse past sessions (j/k navigate, Enter load) |
/session new |
Start a fresh session |
/load <n> |
Load session by number |
Chat history is stored locally and automatically. Use /sessions to browse and reload previous conversations. Each session shows its title, token usage, and context limit.
git clone https://github.com/mehexi/OC.git
cd OC
go build ./cmd/oc
./oc