Custom Agent is coming soon.
In Even App, go to Even AI > Settings > Agent configuration > Custom agent to connect Claude Code, Codex, OpenClaw, Hermes, or another compatible agent to your Even glasses. You’ll need your agent’s chat API URL and connection token. The URL must be reachable from your phone.
Anyone can use Custom Agent without Even Hub developer approval. If you had early access as an Even Hub developer, Even App automatically migrates all your saved connections, preserving each agent’s name, URL, and token.
Set up with an AI assistant
Paste the prompt into an AI assistant that can run commands on the computer hosting your agent.
Read the guide at https://support.evenrealities.com/hc/en-us/articles/18505639031055. Ask me which agent on this computer to connect and whether I need remote access or will use it only on the same Wi-Fi. Wait for both answers before making changes. Follow the guide to set up and test the connection. Give me the full URL and connection token, and help me verify the connection in Even App.
Local or remote access
If your phone and computer are on the same Wi-Fi, use the computer’s local IP address. For remote access, set up Tailscale on both devices and keep the phone’s Tailscale VPN on.
1. Prepare your agent and chat endpoint
Run your agent with a working model and check that it replies on the host. Even App needs these two OpenAI-compatible routes on the same host and port, with the same bearer token.
-
GET /v1/modelsreturns HTTP 200 and a JSON object with"object": "list"and adataarray. Include a non-emptyidstring on each entry. One entry is enough for a single-agent adapter. Even App checks this route when you tap Save and also accepts an empty array. -
POST /v1/chat/completionsaccepts the current question and returns HTTP 200 withContent-Type: application/jsonand a non-empty text reply inchoices[0].message.content. Even App sends only the current message, without chat history. Make sure to configure your agent or adapter to resume the same agent session for every message sent through this Custom Agent connection.
Example requests and responses
Set AGENT_BASE_URL to your agent’s address and port, such as http://192.168.1.15:18789. Include any path prefix before /v1. If your endpoint uses a query string, add it after each route in the examples. Set CONNECTION_TOKEN to the token you enter in Even App.
List models
curl -i "$AGENT_BASE_URL/v1/models" \
-H "Authorization: Bearer $CONNECTION_TOKEN"
Example response body (HTTP 200)
{
"object": "list",
"data": [{"id": "openclaw"}]
}
Send a chat message
Even App always sends "model": "openclaw" and x-openclaw-agent-id: main, regardless of the model list. An adapter that serves a single agent can ignore both routing values and send the request to its configured agent. If the upstream uses either value for routing, send the value it expects.
curl -i "$AGENT_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer $CONNECTION_TOKEN" \
-H "Content-Type: application/json" \
-H "x-openclaw-agent-id: main" \
-d '{
"model": "openclaw",
"messages": [{"role": "user", "content": "Are you connected?"}]
}'
Example response body (HTTP 200, Content-Type: application/json)
{"choices": [{"message": {"content": "Yes, I’m connected."}}]}
Model list format · Chat Completions format
- For OpenClaw, enable Chat Completions over HTTP and use the gateway token. OpenClaw endpoint documentation
- For Hermes, enable the API server and set an access token. Hermes API server documentation
- If your agent lacks either route, use a local adapter that provides both.
Use a strong, unique connection token generated by your agent or setup tool. Keep the endpoint on your local network or private Tailscale network, and require the token on both routes. Keep the token private.
Set up follow-up questions
Resume the same session for follow-up questions. Even App sends only the current question in messages, without chat history or a conversation ID.
Configure the adapter to reuse a session on the host for each saved Custom Agent connection. You can select an existing session the agent can resume or create one on the first message. Save its ID if you want the session to survive an adapter restart. If several connections use one endpoint, give each its own token and look up the session after validating the token. Separate Even chats that use the same connection share the session with this setup.
-
OpenClaw. When the adapter forwards a question to the gateway, reuse the same
uservalue for that connection. To target a specific session, setx-openclaw-session-keyon the gateway request. OpenClaw session behavior -
Hermes. Send the same
X-Hermes-Session-Idfrom the adapter on each request to Hermes Chat Completions to continue an API session. Hermes API server -
Claude Code. When starting a session, save the
session_idfromclaude -p --output-format json. For follow-ups, pass the current question toclaude -p --resume <session-id>using that connection’s saved ID. Claude Code session continuation -
Codex. When starting a thread with
codex exec --json, save thethread_idfrom thethread.startedevent. For follow-ups, pass the current question tocodex exec resume <thread-id>using that connection’s saved ID. Codex non-interactive sessions
For Claude Code and Codex, wrap the CLI’s reply in the Chat Completions JSON response shown above.
2. Connect your computer and phone
Same Wi-Fi
Connect both devices to the same Wi-Fi. Use the computer’s local IP address, such as 192.168.1.15. The agent must accept connections from the phone, and the firewall and Wi-Fi network must allow them. Guest Wi-Fi may block connections between devices. Use Tailscale if you need access away from that network.
Remote access with Tailscale
- Install Tailscale on the computer hosting your agent and the phone paired with your Even glasses. Download Tailscale
- For a personal setup, sign in to the same Tailscale account on both devices. For an organization, confirm that the devices share a tailnet, are approved, and can access each other.
- On the phone, allow the system to add the Tailscale VPN configuration and connect it. Confirm Tailscale shows Connected before returning to Even App, and keep the VPN on while using it. iPhone setup instructions
- Find the agent’s computer in the phone’s Tailscale device list, confirm that it is online, and note that computer’s Tailscale address. Use the computer’s Tailscale address in Even App. It usually looks like
100.x.x.x.
3. Enter three details in Even App
| Input | What to enter |
|---|---|
| Agent name | A name you recognize. It defaults to Custom Agent and supports CJK and other characters. It must not be empty, match another saved Custom Agent’s name, or use a reserved name (Even Agent, Even AI, Muse, Grok Bot, Hark Pro, or Dot). |
| URL | The full Chat Completions URL, including the service port if needed. The path should end in /v1/chat/completions without a trailing slash. |
| Token | The required connection token for both routes. If an AI assistant set up your connection, use the token it gave you. |
For HTTP, use the computer’s local IP or Tailscale IP. Use HTTPS for a hostname, including a Tailscale MagicDNS name. Enter the final URL because Even App stops at redirects.
http://<COMPUTER_IP>:<AGENT_PORT>/v1/chat/completions
For example, use this URL if your computer is at 192.168.1.15 and the agent uses port 18789.
http://192.168.1.15:18789/v1/chat/completions
When you tap Save, Even App replaces the final /chat/completions with /models, keeping any prefix and query. For example, /adapter/v1/chat/completions is checked at /adapter/v1/models. Even App sends chat requests to the URL you entered.
On your phone, localhost and 127.0.0.1 point to the phone itself. Enter the computer’s address.
4. Save and test
- Tap Save. Even App checks the connection without sending a chat message. If the check fails, verify the URL and token, then try the model list request above.
- Back in Agent configuration, select the Custom Agent you just saved.
- In Even AI, send “Hello from Even AI” and check the reply. Keep the computer online and the agent running.
- Test that the agent remembers an earlier message. Send “My test phrase is blue lantern.” Then ask “What was my test phrase?” using the same connection and check that the agent answers “blue lantern.” If you saved the session ID, restart the adapter and ask again.
Frequently asked questions
Is installing Tailscale only on my computer enough?
Not when connecting through Tailscale. The phone paired with Even glasses must also have Tailscale installed and signed in, with its VPN on while you use Even AI. If you connect directly using the computer’s local IP on the same Wi-Fi, neither device needs Tailscale.
Do both devices need the same Wi-Fi?
For a direct connection using a local IP, both devices must be on the same Wi-Fi and the network must allow them to reach each other. With Tailscale, they do not need the same Wi-Fi: both need internet access, permission to reach each other in the tailnet, and an active Tailscale connection. The phone can use cellular data. Tailscale also works on the same Wi-Fi.
Should the URL use my computer’s or phone’s IP?
Use the address of the computer or server hosting the agent: its local IP for same-Wi-Fi access or its Tailscale address for Tailscale access. Include the actual port and full endpoint path. Do not use the phone’s address, a homepage, or localhost.
Is the token my OpenAI API key?
No. Enter the access token configured for this connection by your agent service. Keep the model API key in the agent host’s configuration.
What should I check if it will not connect?
Check that both devices are on the same Wi-Fi, or that Tailscale is connected on both. Keep the computer awake and check that the agent replies on it. In Even App, verify the full URL and token. If the endpoint listens only on localhost or 127.0.0.1, use an endpoint that accepts connections from your phone.
What happens if the computer sleeps or shuts down?
The phone cannot reach an agent on a sleeping or powered-off host. Keep the device and agent service running, and keep Tailscale connected if you use it. You can also host the agent on an always-online server.
Can any agent connect directly?
An agent can connect directly if it provides both routes and can handle the requests shown above. Use an adapter if you need to translate the chat request or serve a missing route.
Why can’t my connected agent read local files or use its tools?
Check which agent your adapter is configured to run and what that agent can access. The agent you open on your computer may have different permissions. For a local file, check that the process running the connected agent can read the folder. For a tool, check that it’s enabled in that agent’s setup.
Why did the connection stop working after I switched VPNs?
Switching VPNs can disconnect Tailscale on your phone. Reconnect Tailscale and try again. If you connect over Wi-Fi, check whether your phone can still reach the computer’s local IP address.
Troubleshooting and support
If Save works but chat shows “Network error,” check the HTTP status and response body from POST /v1/chat/completions. A rejected request or an unreadable reply can show the same error. Try the chat request above to check the model value and JSON response.
If an AI assistant helped you set up the connection, go back to that chat. Share the error and say whether it happened when you tapped Save or sent a message. Retry in Even App while the assistant checks the endpoint logs.