Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
open-source, local-first AI CLI for developers. It connects to your local Ollama models or remote providers like OpenAI, Anthropic, Gemini, and Hugging Face, letting you chat with your code, review changes, and craft commits — all from the terminal.
Jump to setup instructionsFetched from the repository for this visit.
MeerAI (from the German word "Meer" — sea) is an open-source, local-first AI CLI for developers. Operate entirely on your machine with local models, or connect to hosted providers (Meer Managed, OpenRouter, OpenAI, Anthropic, Gemini, DeepSeek, Z.AI, Ollama) and Model Context Protocol servers — all from the terminal.
MeerAI delivers intelligent assistance inside your terminal — no browser tabs, no forced SaaS lock-in.
meer run / meer --print stream plain-text or newline-delimited-JSON events for scripting, CI, and editor/cloud integrations| Area | Capabilities |
|---|---|
Chat (meer) | Interactive TUI with streaming responses, plan tracking (restored on resume), tool timeline, diff previews |
Headless (meer run, meer --print) | Non-interactive runs that stream text or JSON events — for CI, scripts, and integrations |
One-shot Q&A (meer ask) | Repo-aware answers with optional memory and slash-command access |
| Reviews & commits | meer review, meer commit-msg with conventional-commit support |
| Toolbox | 60+ structured tools: read/write/edit, git, run_command, semantic_search, scaffold_project, generate_tests, security_scan, and more |
| Slash commands | Built-in palette (/model, /setup, /history, /plan, …) plus custom commands |
| Sessions & memory | Resumable sessions (--resume, --fork), recent-context loading, per-command memory control |
| MCP support | Auto-load Model Context Protocol servers via ~/.meer/mcp.yaml, with lazy reconnect on server restart |
npm install -g meerai
Requires Node.js 20+. Optional: Ollama for local models.
meer setup
Select Ollama, Meer Managed, or another remote provider. Profiles are stored in ~/.meer/config.yaml. For Meer Managed, run meer login or set MEER_API_KEY.
meer
meer
/plan, /history, /config, /remember, …) available inline.? shows shortcuts. Scroll and copy use your terminal natively.# Plain-text, non-interactive run (auto-approves safe actions)
meer run --yes "add a TODO to README.md explaining the project"
# Newline-delimited JSON event stream (for CI / integrations)
meer run --json --yes "fix the failing tests"
# Top-level shorthand for a one-shot prompt
meer --print "summarize the recent changes"
meer --print "summarize the recent changes" --json
meer ask "Explain the authentication flow"
meer ask --plan "Draft a migration checklist to Express 5"
meer review src/modules/payments
git add .
meer commit-msg --conventional
meer --resume # resume the latest session (restores an unfinished plan)
meer --fork <session> # branch a saved session into a new one
meer memory stats
meer ask --no-memory "Refactor this script"
~/.meer/config.yaml
profile: managed
profiles:
managed:
providerType: meer
model: meer:sonnet
maxIterations: 6
ollama-mistral:
providerType: ollama
provider:
name: ollama
options:
host: http://localhost:11434
model: mistral:7b-instruct
contextEmbedding:
enabled: true
maxFileSize: 200_000
openrouter-claude:
providerType: openrouter
provider:
name: openrouter
options:
apiKey: ${OPENROUTER_API_KEY}
model: openrouter/anthropic/claude-3.5-sonnet
Switch profiles per invocation with meer --profile <name> (or DEVAI_PROFILE=<name>):
meer --profile ollama-mistral review src
meer --profile openrouter-claude ask "Generate tests for the CLI"
| Type | Location | Description |
|---|---|---|
| Conversations | ~/.meer/sessions/ | Rolling session history (JSONL) |
| Long-term memory | ~/.meer/longterm/ | Facts, preferences, embeddings |
| Config | ~/.meer/config.yaml | Provider profiles & agent defaults |
| MCP servers | ~/.meer/mcp.yaml | Configured Model Context Protocol servers |
Agent Skills are folders with a SKILL.md (name, description, instructions) that the agent can
discover and invoke via /skills or the load_skill tool. meer loads skills from:
./.meer/skills~/.meer/skillsmeer also loads Agent Skills from Claude Code and Codex directories, so skills you already have work without copying them:
~/.claude/skills, ~/.codex/skills./.claude/skills, ./.codex/skills (loaded only when the project is trusted)meer's own .meer/skills always take precedence on a name collision. Disable
interop or a specific source in ~/.meer/config.yaml:
skills:
interop:
enabled: true # set false to turn off all interop
claude: true
codex: true
/skills shows each skill's origin, e.g. - critique [claude/global].
meer can run your own shell commands at defined lifecycle points. Define them in
~/.meer/hooks.yaml (global) or ./.meer/hooks.yaml (project — loaded only when
the project is trusted). No file means no hooks.
hooks:
PreToolUse:
- matcher: "edit_file|run_command" # regex on tool name; omit = all tools
command: "./scripts/guard.sh"
timeoutMs: 30000 # optional, default 30s
UserPromptSubmit:
- command: "node ./scripts/inject-context.mjs"
Events: SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop,
PreCompact. Each hook receives a JSON event on stdin
({ "event", "cwd", "sessionId", … }) and may reply on stdout:
{ "decision": "block", "reason": "…" } — blocks the action (PreToolUse and
UserPromptSubmit only).{ "additionalContext": "…" } — injects context (SessionStart,
UserPromptSubmit, PostToolUse).Exit codes: 0 = success (stdout honored), 2 = block (reason from stderr),
any other = non-blocking error (logged, execution continues). Hooks run in the
project directory with your environment; a hook failure never crashes meer.
Run /hooks to list the hooks meer loaded.
MeerAI is a pnpm workspace monorepo with an enforced dependency layering, so the generic agent is cleanly separable from the coding assistant built on top of it:
packages/
@meer-ai/core HTTP (fetch), auth/OAuth — the base layer, LLM-agnostic
@meer-ai/ai LLM I/O: message model, Provider contract, providers, attachments
@meer-ai/agent generic agent loop + orchestration types (no tools, no UI, no provider)
@meer-ai/tui vendored differential terminal renderer
@meer-ai/coding-agent the assistant: tools, slash commands, config, trust, skills, MCP,
and the interactive TUI app — owns the `meer` bin
meerai (root) thin launcher → @meer-ai/coding-agent
Dependency rule (lower may not import higher): core ← ai ← agent ← coding-agent; tui is
independent. See docs/ARCHITECTURE.md for the full design.
packages/coding-agent/src/tools/, wrap it in packages/coding-agent/src/agent/tools/agent.ts.Provider interface in packages/ai/src/providers/ and wire it through packages/coding-agent/src/config.ts.~/.meer/mcp.yaml; the agent autoloads it.packages/coding-agent/src/commands/ and register it in packages/coding-agent/src/cli.ts.git clone https://github.com/meer-ai/meer.git
cd meer
pnpm install
pnpm run build # build all packages in dependency order
pnpm run check # typecheck the whole program
pnpm test # run the verification suite (parallel)
pnpm run dev # run the CLI from source (tsx, no build)
Releases are automated: pnpm run release bumps all packages lockstep, runs preflight, tags,
and pushes — GitHub Actions then publishes every package to npm with provenance and cuts a
GitHub Release.
We welcome contributions, bug reports, and ideas!
git checkout -b feat/awesome-thing.pnpm run build && pnpm run check && pnpm test before submitting.Issue templates live under .github/ISSUE_TEMPLATE/. The Security Policy explains how to report vulnerabilities responsibly.
MeerAI is open-source under the MIT License.
GitHub checked 64h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.