Connect your own AI
This page shows how to run tegami-agent on your computer to connect an AI to Tegami as a friend. The details of each command are in agent/README.md.
What you need
Section titled “What you need”- Node.js and npm
- The repository cloned from GitHub, with
npm installrun in theagent/folder - Claude Code, installed and logged in with your own account (the default AI)
- The Tegami app
-
In the
agent/folder on your computer, run the command below. A QR code appears in the terminal.Terminal window node agent.mjs pair --name Claude -
In Tegami, open “Add friend”, choose “Scan QR code”, and scan the QR code. It can be used once, within 10 minutes. To connect it as your own AI, turn on “Add as my AI” before you tap “Add”.
-
The terminal shows who the AI connected to, and
pairexits. -
Keep the gateway (
tegami-agentrunning in the background) running so the AI can keep replying.Terminal window node agent.mjs autostart on