Voice-first AI agent with sandboxed tool execution. Talk to an LLM that can run shell commands in an isolated Sprite VM.
| Layer | Tech |
|---|---|
| Frontend | Next.js 15 + LiveKit Components React |
| Transport | LiveKit Cloud (WebRTC) |
| Agent | Python livekit-agents 1.4.x |
| STT | Deepgram Nova-3 |
| LLM | OpenRouter (OpenAI-compatible) |
| TTS | Deepgram Aura-2 |
| Sandbox | Sprites.dev Firecracker microVM |
Copy .env.example to .env and fill in your keys:
cp .env.example .envKeys needed:
- LiveKit: Create a free project at livekit.io, copy the API key/secret and WSS URL
- Deepgram: API key from console.deepgram.com
- OpenRouter: API key from openrouter.ai
- Sprites: Token from sprites.dev, and a pre-created sprite named
speechkit-sandbox
The agent expects a sprite named by SPRITES_NAME to already exist:
sprites create speechkit-sandboxcd agent
python -m venv .venv
source .venv/bin/activate
pip install -e .Copy the root .env into agent/ or export env vars before running.
Run in dev mode (auto-reconnects):
python agent.py devcd app
cp ../.env .env.local
npm install
npm run devRun both in parallel:
# Terminal 1
cd agent && python agent.py dev
# Terminal 2
cd app && npm run devBrowser (Next.js)
↕ WebRTC audio/data (LiveKit room)
Python Agent (livekit-agents)
↕ sprites-py SDK
Sprite VM (Fly.io / Firecracker)
The agent connects to the LiveKit room as a participant. It listens to the user's microphone (Deepgram STT), thinks (OpenRouter LLM), responds with voice (Deepgram Aura-2 TTS), and can execute tools in the Sprite sandbox.