min-agent

A very small self-hosted agent: chat over any OpenAI-compatible server, with MCP tools.

Get started GitHub ↗

What it does

A chat app and tool-calling loop for a model you already have: one you run yourself with Ollama or LM Studio, or one behind an API such as OpenAI or OpenRouter. It connects to MCP servers for tools, resources and prompts, and keeps its settings, servers, sessions and every message in Postgres. One front end ships to the browser, Android, and a Windows or Linux desktop app.

Get started

git clone https://github.com/cubicecho/min-agent
cd min-agent
docker compose up -d

That builds the image and starts it with its Postgres database. Open http://localhost:8787, go to Settings → Agent, enter the base URL of an OpenAI-compatible server, refresh the model list, pick a model and save.

Nothing in min-agent is authenticated, so publish the port only on a network you trust.