@opl.dev/cli
v1.0.0
Published
Official CLI for the Open Protocol Labs Better Auth agent claim and raise-desk APIs
Maintainers
Readme
@opl.dev/cli
Official CLI for Open Protocol Labs. It talks to the existing Better Auth agent claim flow and the scoped raise-desk admin APIs. It does not invent a second auth system and it does not mint admin keys.
Docs: https://opl.dev/developers/cli
Install
npm i -g @opl.dev/cli
# from this repo
cd packages/cli
bun install
bun run build
bun linkQuickstart
An allow-listed admin who already has a Better Auth account must approve the claim at https://opl.dev/agent/claim.
opl claim --hint [email protected] --scope investors:read --scope inquiries:read
# show the printed user_code to that admin
opl investors
opl inquiriesEnvironment:
OPL_BASE— API origin, defaulthttps://opl.devOPL_TOKEN— Bearer token from a completed claim (overrides the credentials file)
After a successful claim the token is stored at ~/.config/opl/credentials.json.
Unversioned /api/agent and /api/admin paths keep working; this CLI prefers /api/v1.
