A terminal coding agent for models you run through Llama App or llama.cpp. Ask it to explore a codebase, edit files, or run tests without leaving your terminal. Inspired by Claude Code, with local inference and no runtime npm dependencies.
- Your models. Connect to your backend, pick a model from the server, and switch models during a session.
- Your workflow. Work interactively, review a plan before execution, or let auto mode approve edits as the agent works.
- Project context. Load
AGENTS.mdand reusable skills from your project. Save sessions locally and resume them later. - Beyond code. Read web pages, search through SearxNG, and attach images for vision models. Local dictation and spoken answers are optional.
cd your-project
sup "Trace how configuration is loaded and explain which values take precedence."
# The answer streams in your terminal; the session stays open for follow-up questions.Getting started · Configuration · Working with sup · Project instructions and skills · Optional features · Permissions
You need Node.js 22.18+, npm, Git, and a model that supports tool calling. The shell tool uses Bash. Development runs on Fedora 42 under WSL; models have only been tested in the 27–35B range.
Choose one backend:
- Llama App (Windows or macOS): install Llama App, open it, and download a model. The app manages its own server on port
9931. - llama.cpp (including native Linux/Fedora): install llama.cpp and start your GGUF model with
llama serve -m /path/to/model.gguf --jinja --port 8080. The standalonellama-servercommand works too. Replace the path with your model file and keep the server running. To serve multiple cached models on demand, usellama serve --port 8080without a model argument.
git clone https://github.com/evgenygorchakov/sup.git
cd sup
cp .env.example .env
npm linkThe CLI runs its TypeScript source directly, so there is no build step. npm link makes sup available on your PATH; keep this checkout where you installed it.
Edit .env in the sup checkout to match your backend:
| Backend | PROVIDER |
Server setting |
|---|---|---|
| Llama App | llamacpp |
LLAMACPP_HOST=http://127.0.0.1:9931 |
| llama.cpp CLI (command above) | llamacpp |
LLAMACPP_HOST=http://127.0.0.1:8080 |
Llama App and the CLI use the same provider and API. The address is configured per installation; sup connects over HTTP and does not start either server. LLAMACPP_HOST is the server root, without /v1; its default remains http://127.0.0.1:8080 for existing installations. Current llama serve defaults to port 9931 when --port is omitted.
Leave MODEL empty to let sup choose the only loaded model, then the only available model; otherwise it opens a selection menu. For scripts without an interactive terminal, set MODEL explicitly when several models are available. /model switches models during a session. The server loads the selected model on the first request if autoload is enabled; otherwise load it in the app or server first.
For servers started with authentication, set LLAMACPP_API_KEY to the server's API key. Leave it empty when authentication is disabled. sup reads the selected model's effective context size without loading it just to inspect metadata, then refreshes the limit after replies. CONTEXT_WINDOW_TOKEN_LIMIT can cap that limit; model metadata's advertised maximum is not treated as the allocated context.
When sup and the server run in different environments or on different machines, use an address reachable from sup. For example, Windows localhost is not Linux localhost under WSL's NAT networking; configure networking separately. Native Fedora with a local llama serve uses the local address directly. No WSL-specific connection logic is required.
From the directory you want the agent to work in:
supAsk a question or describe a task. Use /help to see the available commands and /exit to quit.
sup starts in auto mode: file edits and web requests run without approval. To review them first, start with
USE_AUTO_MODE=false sup. See Permissions for shell behavior.
Settings come from .env in the sup checkout, regardless of the directory you launch it from. Environment variables override .env, so you can change settings for one session:
LANGUAGE=Russian USE_AUTO_MODE=false supThe main settings are:
| Setting | Default | Purpose |
|---|---|---|
PROVIDER |
llamacpp |
Model backend for Llama App and llama.cpp. |
MODEL |
Auto-detected | Model to use at startup. |
LANGUAGE |
User's language | Language requested in the system prompt. |
USE_AUTO_MODE |
true |
Approve file edits and web requests automatically. |
USE_PLAN_MODE |
false |
Start by proposing a plan for approval. |
USE_SHELL_TOOL |
true |
Allow the agent to run Bash commands. |
USE_JOURNAL |
false |
Save conversations and tool activity for resuming. |
TEMPERATURE |
Unset | Override model/server sampling temperature. |
See .env.example for all settings, including context limits, timeouts, streaming, and loop detection. Slash commands change the current session without rewriting .env.
sup uses llama.cpp by default. sup --llama and sup --provider llamacpp also select this backend.
Use Shift+Tab at the prompt to cycle between normal, auto, and plan modes. Press Esc during a response to interrupt it; completed tool actions are kept.
| Command | What it does |
|---|---|
/model |
Choose a model available on the current backend. |
/plan-mode on |
Investigate the next task and propose a plan before executing it. |
/auto-mode off |
Return to normal mode, with approval for edits and web requests. |
/run-plan |
List saved plans; /run-plan 1 executes the first one. |
/skills |
List project skills and their commands; use /<name> <task> to run one. |
/search-provider |
Show the SearxNG search provider and its configuration status. |
/show-thinking |
Show or hide thinking text in the terminal. |
/temp |
Set temperature, or use /temp default to leave it to the model/server. |
/verbose |
Toggle full tool output. |
/clear |
Clear conversation history. |
/help, /exit |
Show all commands or quit. |
Configure model thinking in Llama App or when launching your llama.cpp server. /show-thinking only controls whether its text appears in the terminal.
Enable /plan-mode on, then describe your task. sup investigates with read-only tools and proposes a Markdown plan. Reply with y to proceed, a to proceed with auto approval for this task, n to reject it, or text to revise it.
Approved plans are saved under .sup/plans/. After approval, sup returns to the previous mode. Plan approval requires an interactive terminal.
Enable USE_JOURNAL=true in .env before starting a session. sup stores its messages and tool activity under .sup/runs/ in your project. From that same directory:
sup --resume # Continue the latest saved run.
sup --resume=<run-id> # Use a directory name from .sup/runs/.Journaling must also be enabled when resuming. It is off by default.
Include an image path in your message, such as Explain the error in ./screenshot.png, or press Ctrl+V to attach a clipboard image. Use a vision-capable model. Clipboard capture uses Windows PowerShell in WSL, pngpaste on macOS, or wl-paste / xclip on Linux.
Put AGENTS.md in the directory where you launch sup to add project instructions to its system prompt.
For reusable workflows, create .sup/skills/<name>/SKILL.md. For example, .sup/skills/review/SKILL.md:
---
description: Review changes for bugs and missing tests.
---
Read the diff and the affected code. Report concrete problems with file paths
and explain how to reproduce them. Do not edit files during the review.Skills are discovered at startup. sup exposes their descriptions to the model and loads the full instructions on demand. You can also invoke this example with /review or /review <task>.
These features need additional services or credentials:
| Feature | Setup |
|---|---|
| Web search | Set WEB_SEARCH_HOST to your SearxNG instance. No API key is needed; see the SearxNG setup guide. |
| Dictation | Install the local Whisper service, enable USE_STT=true, and press Ctrl+G to record. Press Enter to send, Ctrl+G again to insert the text, or Esc to cancel. |
| Spoken answers | Install the local Silero service and enable USE_TTS=true. Use /tts to toggle speech during a session. |
The optional features overview links to the service instructions. The voice setup guide is in Russian and targets Fedora 42 in WSL2.
Model inference can stay local while web tools make network requests: search queries go to your SearxNG instance, and fetch_url retrieves public web pages without a search API key.
| Tool or action | Normal mode | Auto mode (default) |
|---|---|---|
| Read and search project files | Runs automatically | Runs automatically |
| Write or edit files | Asks for approval | Runs automatically |
| Fetch a URL or search the web | Asks for approval | Runs automatically |
| Allowlisted shell commands | Runs automatically | Runs automatically |
| Other shell commands | Asks for approval | Asks for approval |
At an approval prompt, accept, reject, or type feedback for the agent.
- File tools stay inside the working directory, including when resolving symlinks. They refuse filenames matching sensitive patterns such as
.env, private keys, and credentials. File writes also refuse paths inside.gitand.sup. - Shell commands run with your user permissions, without a sandbox. The file tools' path and filename restrictions do not apply to Bash. Set
USE_SHELL_TOOL=falseto disable it. sup --dangerously-skip-permissionsbypasses tool approval prompts for the session. File-tool restrictions still apply.