
A memory-first AI agent for long-running work — local, cloud, or decentralized.
Most AI assistants forget everything the moment you close the window. Zeph is built the other way around: it remembers.
Point it at your code, your documents, or your team chat, and it keeps working across days and sessions — recalling not just what was said, but why a decision was made. It runs on your laptop with free local models, reaches for the cloud (or a decentralized network) only when a task is genuinely hard, and keeps your API keys encrypted and your tools sandboxed the entire time.
It's a single ~12 MB Rust binary. No Python, no Node, no database server to babysit.
curl -fsSL https://github.com/bug-ops/zeph/releases/latest/download/install.sh | sh
zeph init # interactive wizard sets up your provider and keys
zeph # start talking
Prefer to stay fully offline? Run Ollama, pull two small models, and nothing ever leaves your machine:
ollama pull qwen3:8b
ollama pull qwen3-embedding
zeph init && zeph
That's it — install, configure, chat. Want the dashboard instead? zeph --tui.
| Code with it | Point Zeph at a repo. It reads files, runs commands, searches code, and answers with full project context. Drop a zeph.md in your repo for project-specific instructions, or plug it into your editor over ACP. |
| Put it in your team chat | Deploy as a Telegram, Discord, or Slack bot with streaming replies, user allowlists, and voice-message transcription. Your team gets an assistant where they already work. |
| Keep it private | Run 100% locally with Ollama — no data leaves your machine. Encrypt secrets in an age vault, sandbox file and shell access, and require confirmation before anything destructive. |
| Let it run long jobs | Research loops, document RAG, scheduled tasks, multi-step plans, and sub-agents — work that spans hours and many tool calls, not a single reply. |
| If you want… | Zeph gives you… |
|---|---|
| An agent that survives long projects | SQLite conversation history, semantic recall, graph memory, session digests, and goal-aware compaction. |
| Lower running costs | A default embedded vector store, local Ollama defaults, and routing that sends easy work to cheap models and saves expensive ones for hard tasks. |
| Memory that understands why | Typed knowledge-graph facts, multi-hop recall, probabilistic belief edges, and write-quality gates — not just keyword search over old chat logs. |
| Provider freedom | Ollama, Claude, OpenAI, Gemini, Candle, any OpenAI-compatible endpoint, plus decentralized networks (Gonka, Cocoon TEE). |
| Agent-grade safety | Encrypted vault, sandboxed tools, prompt-injection detection, SSRF guards, PII filtering, and exfiltration checks. |
| To work where you already are | CLI, TUI dashboard, chat apps, IDEs, MCP tools, an HTTP gateway, and a scheduler. |

The sections below go from the headline idea to the implementation detail. Skim the summaries; expand the ▸ details blocks when you want to see exactly how it works.
Most agents bolt recall on as an afterthought. In Zeph, memory is the core. It runs several layers at once instead of dumping everything into one vector index:
| Layer | What it holds |
|---|---|
| Working context | Keeps the current task coherent under context pressure. |
| Episodic | Per-session messages, tool outputs, and digests, persisted to SQLite. |
| Semantic | Cross-session facts promoted once they recur across distinct sessions. |
| Graph | Entities, decisions, and the typed relationships between them. |
So you can ask "Why did we choose Kafka?" and Zeph follows causal edges from Kafka through the decision graph to surface the original rationale — instead of returning ten documents that happen to contain the word.
▸ The full memory stack (for the curious)
Zeph layers ~20 specialized mechanisms on top of vanilla vector search. The notable ones:
valid_from/until for the fact, created_at/expired_at for ingestion). Contradictions supersede rather than overwrite, leaving a full audit trail you can time-travel through.See memory concepts and graph memory.
Adding more skills and tools shouldn't inflate every prompt. Zeph keeps prompt size O(K), not O(N): with 50 skills installed, only the ~5 relevant to your query are loaded — roughly 2,500 tokens of skill context instead of ~50,000.
▸ How the prompt stays small
See Why Zeph? and token efficiency.
Declare every provider once in [[llm.providers]], then let Zeph route each task to the cheapest option that can handle it — with automatic fallback if one fails.
[[llm.providers]]
name = "fast" # cheap local model for extraction, embeddings, routing
type = "ollama"
model = "qwen3:8b"
embedding_model = "qwen3-embedding"
embed = true
[[llm.providers]]
name = "quality" # reserved for planning, code, hard reasoning
type = "claude"
model = "claude-sonnet-4-6"
default = true
[llm]
routing = "bandit"
Eight provider types work out of the box: Ollama, Claude, OpenAI, Gemini, any OpenAI-compatible endpoint (Groq, Together, Fireworks…), Candle for fully-local GGUF inference, and two decentralized networks:
| Network | Type | What's special |
|---|---|---|
| Gonka | gonka / compatible |
Distributed GPU nodes — no shared rate ceiling, no single-vendor lock-in, OpenAI-compatible gateway. |
| Cocoon | cocoon |
Hardware TEE isolation — node operators can't read your prompts or weights, with attested speech-to-text. |
▸ Routing strategies
Five strategies are implemented, plus reputation and stability layers on top:
Reputation-aware selection penalizes providers that emit invalid tool calls; an Agent Stability Index tracks response coherence; a quality gate verifies the chosen output. See adaptive inference.
Skills are plain SKILL.md markdown files — easy to write, version, and share. Edit one and it hot-reloads; no restart. Matching is by meaning, so "check disk space" finds the system-info skill without a keyword match.
When a skill repeatedly fails, Zeph notices (its feedback detector works across 7 languages), reflects on the cause, and generates an improved version — with Wilson-score ranking promoting what actually works and auto-rollback if a new version regresses.
▸ Trust, quarantine, and self-learning
See self-learning and skill trust.
Secrets live in an age-encrypted vault, never in .env files. Every tool call passes through trust gates, command filters, sandboxing, and an audit log. Content from untrusted sources (web pages, tool output, MCP servers) is sanitized before it ever reaches the model.
▸ Defense in depth
0600, zeroized in memory on drop, atomic writes... escapes rejected before canonicalization.See the security model.