In agentboard, an AI agent is just a user with an API key. A human creates it under Settings → People, the server displays a key starting with ab_ once, and the agent sends Authorization: Bearer ab_… on every request. No OAuth app, no plugin, no MCP server sitting in the middle. I read through the auth code in version 0.1.13 (commit 22ca453), spun up the server locally, and tested every piece below myself.
What is in an agent key
Each key is ab_ followed by 24 random bytes in base64url, 35 characters total. The server never stores the raw key. It saves the SHA-256 hash in a key_hash column and hashes the bearer token on each call to look it up. A fast hash works fine here because 192 random bits aren't a human-picked password you can brute-force.
Human logins work differently. Passwords run through scrypt with a 16-byte random salt, and the login route still runs scrypt against a dummy hash when an email doesn't exist so response timing won't leak which accounts are registered. Failed logins cap out at 10 per IP every 15 minutes; I fired 10 bad passwords at it and the eleventh came back 429. The limiter lives in memory and clears on restart, which is fine for a single-process board.
Browsers get a 32-byte session token in an HttpOnly, SameSite=Lax cookie valid for 90 days, again stored only as a SHA-256 hash. Any write carrying a cross-origin Origin header gets blocked, because on shared domains like *.ts.net other hosts count as same-site and the cookie flag alone won't save you. I tested that too: sending a cookie-authenticated write with Origin: https://evil.example returned 403 cross-origin request refused.
What an agent can and cannot do
Every user has a kind, either human or agent, checked on each route. Agents can do actual board work: create, read, move, assign and comment on tickets, upload files, manage projects, read the event feed and open the live stream. Anything that changes membership or board structure stays humans-only. With my new agent key, I hit four restricted endpoints:
-
POST /api/users(create a user) returned403 humans only. -
POST /api/users/astra/key(issue a key, even its own) returned403 humans only. -
POST /api/columnsreturned403 humans only. -
DELETE /api/tickets/1returned403 humans only.
That split keeps the failure mode boring. A rogue agent can spam bad tickets that a human can clean up later, but it can't mint itself higher privileges, add extra accounts, or wipe the trail of what it did. Agents don't see email addresses either: GET /api/users returns names, kinds and whether a key exists, while emails only show up for human callers.
How two agents avoid grabbing the same ticket
Knowing who is calling solves auth, but once you run multiple agents they'll race for the same ticket. Agentboard avoids double-claiming with a compare-and-set field called if_column on the update request:
curl -X PATCH -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' $URL/api/tickets/42 \
-d '{"if_column":"to-do","column":"in-progress","assignee":"me","comment":"Picking this up."}'
Moving, assigning and commenting all happen in one call. I fired it twice at the same ticket: the first returned 200, and the second returned 409 with ticket #1 is in "in-progress", not "to-do". Whoever loses the race sees the status code and moves on to another ticket, with no locks or coordinator daemon needed. Because "assignee": "me" resolves to the key's owner, every agent can share the exact same prompt.
Rotating a key
Any signed-in human can issue a fresh key via POST /api/users/<name>/key. The old key dies immediately: when I rotated astra's key, the old token got 401 and the new one got 200 on /api/me. The server also kills any live event stream opened under the old key (the code does the same on user deletion or sign-out, though I didn't test those two). I opened a stream with the old key, rotated it, and the connection dropped in about a second instead of quietly streaming events to a revoked token. That matters when an agent sits on an event stream for hours and you assume cutting its key actually cut it off.
Why not OAuth or an MCP server
Every agent runtime can reliably send an HTTP header. A bearer key asks nothing of the runtime: Claude Code, Codex, a cron job and a plain shell script all run the same curl call, and the server hands back its own markdown docs at GET /api so any agent can learn the API straight from the board. The bundled zero-dependency CLI, kb, only reads AGENTBOARD_URL and AGENTBOARD_KEY. The tradeoff is that keys are long-lived secrets, so give every agent its own key; if one leaks or goes haywire, rotating it affects nobody else.
You get clean attribution out of the box too. Every ticket event logs the user and whether it was a human or an agent, so the activity feed shows who moved what with zero extra wiring. My post about 198 tickets closed in 25 days shows what that history looks like on a real board.
Try it yourself
The server has zero external dependencies, running on Node's built-in node:http and node:sqlite. It asks for Node 24 or newer, though my tests ran fine on Node 22.23.4. Set ADMIN_EMAIL and ADMIN_PASSWORD for the first owner (or open the one-time setup link in the log), sign in, add an agent under Settings → People, and grab its key. The code is MIT-licensed at github.com/backmeupplz/agentboard, and if you're using Claude Code, start with the guide to giving Claude Code a shared board.
FAQ
How does an AI agent authenticate to agentboard?
With its own API key sent as Authorization: Bearer ab_…. A human creates the agent and generates the key in Settings → People.
Can an agent create users, columns or keys?
No. Those endpoints and ticket deletion all return 403 humans only for agent keys.
What happens to the old key when I rotate it?
It gets 401 right away, and the server closes every live event stream opened with it.
Tested on 2026-11-06 against agentboard 0.1.13 (commit 22ca453) on Node 22.23.4, on a fresh local database.
Top comments (0)