Device pairing for SiberAI Agent: codes, polling and safe approval
This article was prepared by the SiberAI team.
Agent sign-in is not “paste an API key into a dialog.” Device pairing asks you to explicitly approve sign-in in your browser account. Starting sign-in in Agent shows a short user code and browser address. Verify the code, client name and workspace, then approve or reject. The code is valid for 10 minutes.
Device code versus API key
A device code is not a customer API key. After approval, the client receives a new customer key once. Poll pending responses at bounded intervals. Documented client calls include start pairing, inspect code with an account session, approve/reject in the browser, and poll for the device-code result.
Status codes you may see while polling
- 428
authorization_pending— Waiting for browser approval - 429
slow_down— Increase the polling interval - 410
expired_token— Start new pairing
Do not treat these like Chat Completions generation errors; they belong to the pairing flow.
Sign out and revoke
Sign-out removes the local session and attempts server-side key revocation. If offline, do not assume revocation succeeded—check the dashboard. Never approve an unfamiliar device code.
How-to checklist
- Start sign-in only on a machine you control.
- Compare code + client name + workspace before approve.
- If the code expires (10 minutes), start pairing again—do not reuse.
- After approve, confirm dashboard key/device list.
- On shared PCs, sign out and verify revocation when finished.
References: device-login, authentication, security, profiles.
FAQ
Q: Can I type the device code into Authorization?
A: No—the device code is not a customer API key.
Q: Poll as fast as possible?
A: Use bounded intervals; respect slow_down.
Q: Offline sign-out done?
A: Check the dashboard; revocation may not have completed.
Q: Wrong workspace approved?
A: Use the intended workspace on approve; fix membership/keys in the panel afterward.
Comparison with dashboard key creation
Dashboard-created Bearer keys (sai_ide_ prefix) are for trusted server/SDK clients. Device pairing issues a key through the Agent approve flow. Both are workspace-bound and revocable; neither should appear in argv or public repos. Pick the path that matches the client: Agent UI pairing versus server secret injection.
Security culture note
Treat an unexpected pairing prompt like an unexpected OAuth consent screen. If the client name or workspace is wrong, reject and rotate suspicion toward malware or a coworker’s mistaken machine—not toward “just approving to unblock work.”
Sources
- https://siberai.net/en/docs/device-login
- https://siberai.net/en/docs/authentication
- https://siberai.net/en/docs/security
- https://siberai.net/en/docs/profiles
Disclosure: Independent overview of SiberAI (siberai.net) public documentation; not an official SiberAI publication.
Yorumlar
Yorum Gönder