A self-hosted AI agent platform that runs on your own hardware. Talk to multiple AI personas, give them persistent memory, connect them to MCP servers and external tools, and access everything privately from any device over Tailscale.
Requires macOS or Linux with internet access. Everything else is installed automatically.
curl -fsSL https://github.com/MJUIUC/agent-deck/archive/refs/heads/main.tar.gz | tar xz && cd agent-deck-main && ./install.shThe installer will:
- Install Homebrew — macOS only (if absent)
- Install Rust via rustup (if absent)
- Install nvm and Node 24 via
.nvmrc(if absent) - Install Tailscale via Homebrew on macOS, or the official install script on Linux (if absent)
- Build the Rust server and React frontend from source
- Deploy everything to
~/.agent-deck/ - Start the server and print your auth token
Once installed, open http://localhost:7474.
This downloads the source and builds locally — the same as
git clone, just without needinggit. On modern multi-core hardware the compile takes about a minute; older or single-core machines may take longer. Pre-built binary releases (no build step) are planned once a CI release pipeline is in place.
If you already have git:
git clone git@github.com:MJUIUC/agent-deck.git && cd agent-deck && ./install.shThe installer registers an agent-deck command in your shell:
agent-deck start Start the server
agent-deck stop Stop the server
agent-deck status Show server and Tailscale status
agent-deck logs Tail the server log
agent-deck open Open in the default browser
Everything lives under ~/.agent-deck/:
~/.agent-deck/
mcp/ MCP server configs and local binaries
personas/ Persona avatars and assets
skills/ Skill definitions
workspaces/ Per-thread file workspaces
.process/ Internal runtime files (binary, database, logs, assets)
The four top-level directories are the ones you'll interact with directly. .process/ is managed by the installer and server — you shouldn't need to touch it.
Create multiple AI personas, each with its own name, emoji, system prompt, and model assignment. Personas have independent memory — what one persona knows doesn't bleed into another.
Each persona has a searchable memory store (SQLite FTS5). The agent can call save_memory and recall_memory tools automatically during conversation. Memory persists across threads.
Connect any Model Context Protocol server — local (child processes via stdio) or remote (HTTP/SSE). Tools are namespaced per server and injected into the agent's tool list automatically.
Attach cron-based routines to threads. At the scheduled time the agent runs autonomously, executes tool calls, and saves results as messages. Useful for daily summaries, monitoring, or recurring tasks.
Connect any OpenAI-compatible LLM provider. Multiple providers can be configured simultaneously and assigned to individual personas. GitHub Copilot is supported via a bundled copilot-api sidecar.
Each thread gets an isolated filesystem workspace at ~/.agent-deck/workspaces/<thread-id>/. The agent can read and write files there, and you can browse the workspace from the file explorer in the UI.
API keys and secrets are stored encrypted at rest (AES-256-GCM) and decrypted only when needed by the MCP connection manager. They are never written to disk in plaintext.
Connect over your private Tailscale network to access agent-deck from any device — phone, tablet, or another computer. Enable Tailscale Funnel to expose a public HTTPS endpoint for incoming webhooks.
Localhost (127.0.0.1 / ::1): Auth is bypassed entirely. The browser on the same machine as the server never needs a token.
Remote devices: On first visit from a remote browser, a token entry screen is shown. The token is printed to the server terminal on startup (and visible in agent-deck logs). Once entered it's stored as an httpOnly session cookie — you won't need to re-enter it per browser.
To rotate the token: Settings → Auth Token → Rotate.
Pull the latest code and re-run the installer:
cd agent-deck && git pull && ./install.shThe installer stops any running instance, rebuilds, redeploys, and restarts.
The server and frontend are built and run independently.
# Terminal 1 — rebuild the React app whenever you make frontend changes
cd web && npm run build
# Terminal 2 — run the Rust server (serves the build above)
cd server && cargo runnpm run dev runs Vite's dev server on :5173 with hot-reload and proxies API calls to the Rust server on :7474. It's useful for fast frontend iteration on the same machine, but mobile and remote devices always hit the Rust server directly — so you need npm run build to make those reflect your latest changes.
To avoid setting PUBLIC_DIR on every run, copy the example env file and fill it in:
cp server/.env.example server/.env
# then set PUBLIC_DIR to the absolute path of server/publiccargo run picks up server/.env automatically via dotenvy.
| Variable | Default | Description |
|---|---|---|
PORT |
7474 |
Server listen port |
PUBLIC_DIR |
~/.agent-deck/.process/public |
Path to compiled React SPA static files |
AGENT_DECK_DATA_DIR |
~/.agent-deck |
Root data directory (database, workspaces, MCP configs) |
FCM_SERVICE_ACCOUNT_JSON |
(unset) | Absolute path to Firebase service account JSON for push notifications |
RUST_LOG |
info |
Log level (info, debug, trace) |
The server is a single Rust binary (Axum + SQLite) that serves the React SPA, runs the agent loop, manages MCP connections, and handles all API routes. There are no external services required — just the binary and a SQLite database.
Rust server :7474
├── Axum HTTP + SSE
├── Agent run-loop (streaming, tool calls, cancellation)
├── Cron scheduler
├── MCP connection manager (local stdio + remote HTTP/SSE)
├── Provider abstraction (OpenAI-compatible + Copilot)
├── Credential store (AES-256-GCM)
└── Static file server → React SPA
copilot-api sidecar :4141 (spawned automatically, only if Copilot is configured)
SQLite (WAL mode) ~/.agent-deck/.process/.database/agent-deck.db
See docs/ARCHITECTURE.md for sequence diagrams and deeper detail.
Private. All rights reserved.