synthetic-lab/octofriend
An open-source coding helper. Very friendly!
What it solves
Octo is a coding assistant that runs in your terminal. It helps you write and edit code with an AI model of your choice, while keeping your data private thanks to zero telemetry. It addresses the problem of being locked into one model or provider: you can switch models mid-conversation if one gets stuck. It also handles everyday needs like web search, session resumption, image attachment, and sandboxing via Docker.
How it works
Install it globally with npm (npm install --global octofriend), then run octo or octofriend in your terminal. Octo connects to any OpenAI-compatible or Anthropic-compatible API. You can add your own models via the config file at ~/.config/octofriend/octofriend.json5, or use local LLMs through servers like ollama or llama.cpp. Octo reads instruction rules from OCTO.md, CLAUDE.md, or AGENTS.md (it picks the first it finds) and merges them from the current directory up to your home. It also supports the Agent Skills spec for reusable, context-dependent instructions. You can plug in MCP servers for richer data, and it automatically detects installed language servers (like TypeScript, Go, Rust) to give your model IDE-grade navigation tools. For web search, Octo uses Synthetic's private search API by default, but you can configure any compatible search endpoint. Docker support lets you run Octo inside a container, either by connecting to an existing one or launching a new container with octo docker run.
Who it's for
Octo is for developers who want a privacy-respecting AI coding assistant that works with many LLM providers, including local models. It's also for users who like to switch models on the fly, or want a terminal-based assistant with advanced features like Docker sandboxing, custom skills, and MCP integration.
Highlights
- Zero telemetry – your code and conversation stay private.
- Works with any OpenAI-compatible or Anthropic-compatible API, including local LLMs.
- Switch models mid-conversation with
Ctrl+P. - Optional custom-trained autofix models to automatically handle tool call and code edit failures.
- Built-in web search via Synthetic or a custom search endpoint.
- Per-directory session saving and resuming, plus in-app switching with
Ctrl+P. - Attach images to messages if the current model supports image input.
- Docker sandboxing: run Octo inside a container or connect to existing ones.
- Rules files (
OCTO.md,CLAUDE.md,AGENTS.md) merged from project and home directories. - Supports the Agent Skills spec for reusable, context-dependent instructions.
- MCP server integration and automatic LSP language server detection.
Related
- Project
- Project
- Project
- Project
- Dispatch