nao
Track nao in Benchouse by reading its own database.
Updated 19 October 2026
- evals: supported
- logs: supported
- cost: supported
- users: supported
What Benchouse reads
Benchouse reads nao’s own database with a read-only role. It doesn’t need access to nao itself.
- Each question and nao’s answer.
- The SQL nao ran, from its
execute_sqltool calls, with row counts, errors and results. - Reasoning, follow-up suggestions and clarifying questions.
- Other tool calls and MCP calls, such as
read,listanddisplay_chart. - The model, tokens and cost of each answer, and the user who asked.
- Thumbs up and down on nao’s answers, with the explanation a user gave.
Connect
nao stores its data in the database its DB_URI points to. Benchouse
connects to nao on Postgres only: DB_URI must start with postgres://. A nao
on its default local sqlite file can’t be connected.
Create a read-only role on that database:
CREATE ROLE benchouse_read LOGIN PASSWORD '…'; GRANT CONNECT ON DATABASE nao TO benchouse_read; GRANT USAGE ON SCHEMA public TO benchouse_read; GRANT SELECT ON chat, chat_message, message_part, llm_inference, project, mcp_call_log, message_feedback TO benchouse_read; GRANT SELECT (id, name, email, email_verified) ON "user" TO benchouse_read;The role can read these eight tables and nothing else, and on
"user"only the name and email. API keys, sessions, OAuth tables and stored Git tokens stay unreadable.message_partincludes the results of the queries nao ran, and Benchouse stores those.Optionally, also let it read nao’s context recommendations. Run this as its own statement: it fails on a nao without these tables, and the grant above still holds.
GRANT SELECT ON context_recommendation, context_recommendation_linked_feedback TO benchouse_read;Allow your database to accept connections from Benchouse’s addresses, listed under Network access.
In Agents, click Add agent, choose nao, and create a nao connection with the database host, database name, role, password and TLS mode.
Choose nao from what the connection reports.
Run evals
Evals ask nao questions through its MCP endpoint. Capture works without it.
- In nao, open Settings → MCP Endpoint, turn it on (Sub-agent mode), and copy the URL and the bearer token.
- Make the endpoint reachable from Benchouse over HTTPS, from the addresses under Network access.
- On the nao connection in Benchouse, add the MCP endpoint and the MCP bearer token. Keep the database role: nao’s answers over MCP carry no SQL, so Benchouse reads the SQL from the database.
The bearer token nao shows there is your session token. It expires after about a week, and when you log out of nao. When evals start failing with a rejected token, copy a fresh one from Settings → MCP Endpoint and replace it on the connection.
Each eval question is a real chat in nao. It uses your model tokens and shows up in nao’s history beside your users’ chats.
Network access
Benchouse connects from these three addresses:
74.220.63.16
74.220.63.17
74.220.63.243 Allow them on nao’s database, and on its MCP endpoint if you run evals.