Skip to content

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):

  1. 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
    
  2. Edit ~/.config/anvil-agent/router.toml to 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).
  3. Edit ~/.config/anvil-agent/runtime.env with strong random tokens (openssl rand -hex 32) for AGENT_ROUTER_TOKEN and AGENT_CLIENT_TOKEN.
  4. 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
    
  5. 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

  1. Follow the MemoMind Plugin Guide to copy MemoMind's PhoneSDK bundle into memomind/vendor/ (git-ignored) and sideload the plugin via MemoMind Plugin Studio.
  2. Open Anvil Agent on your phone. It starts offline until configured.
  3. Tap Configure server (or the gear icon):
  4. Agent server URL: https://agent.example.test (or http://127.0.0.1:8792 in local Studio testing).
  5. Agent API key: your AGENT_CLIENT_TOKEN (leave blank when using Tailscale Serve identity headers).
  6. Voice / STT server URL (optional): leave blank to use Anvil Agent's built-in /v1/memos/preview for live captions, or enter your Anvil Scribe URL if you also want RC/MR voice memo recording.
  7. 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.