Getting Started with Anvil Agent¶
Anvil Agent connects MemoMind One smart glasses to your own AI agents and speech-to-text stack without sending audio or replies to a third-party relay.
1. Start the Backend + Real-Time Router¶
The fastest way to run everything is Docker Compose (deploy/docker-compose.yml), which starts both the real-time STT/LLM router and the Anvil Agent gateway (ffmpeg included):
- Create a private config directory outside the repository:
mkdir -p ~/.config/anvil-agent && chmod 700 ~/.config/anvil-agent cp deploy/env.example ~/.config/anvil-agent/runtime.env && chmod 600 ~/.config/anvil-agent/runtime.env cp deploy/router.example.toml ~/.config/anvil-agent/router.toml cp deploy/agent.example.toml ~/.config/anvil-agent/agent.toml - Edit
~/.config/anvil-agent/router.tomlto point[router.audio_routes.stt-fast]at your OpenAI-compatible STT server (Parakeet, Whisper, Faster-Whisper, Speaches) and[router.chat_routes.assistant-llm]at your LLM server (Ollama, vLLM, llama.cpp, SGLang, or cloud API). - Edit
~/.config/anvil-agent/runtime.envwith strong random tokens (openssl rand -hex 32) forAGENT_ROUTER_TOKENandAGENT_CLIENT_TOKEN. - Start the stack:
AGENT_ROUTER_CONFIG=~/.config/anvil-agent/router.toml \ AGENT_CONFIG=~/.config/anvil-agent/agent.toml \ docker compose -f deploy/docker-compose.yml --env-file ~/.config/anvil-agent/runtime.env up --build -d - Verify health on loopback:
curl -sS http://127.0.0.1:8792/healthz
For HTTPS with Caddy, bare-metal Python, Tailscale Serve, or Hermes/Pi backends, see the Deployment Guide.
2. Install & Connect the MemoMind One Plugin¶
- Follow the MemoMind Plugin Guide to copy MemoMind's PhoneSDK bundle into
memomind/vendor/(git-ignored) and sideload the plugin via MemoMind Plugin Studio. - Open Anvil Agent on your phone. It starts offline until configured.
- Tap Configure server (or the gear icon):
- Agent server URL:
https://agent.example.test(orhttp://127.0.0.1:8792in local Studio testing). - Agent API key: your
AGENT_CLIENT_TOKEN(leave blank when using Tailscale Serve identity headers). - Voice / STT server URL (optional): leave blank to use Anvil Agent's built-in
/v1/memos/previewfor live captions, or enter your Anvil Scribe URL if you also wantRC/MRvoice memo recording. - Tap Test connection, then Save & connect.
3. Connect an Agent to Your Glasses via MCP¶
Point any MCP client (Hermes, Pi, Claude Code, Codex) at http://127.0.0.1:8792/mcp (or https://agent.example.test/mcp) with Authorization: Bearer <AGENT_CLIENT_TOKEN> to expose the memomind_glasses tool. See MCP Glasses Control.