← All projects
09Planned CLI

OAuth authorization code with PKCE

relay CLI

A CLI that signs in through the browser, or with a code when there is none.

Planned CLI

The command line for Relay. OAuth with PKCE and a localhost callback on a laptop, the device flow over SSH or in CI, tokens in the OS keychain, --json on every command, org switching, and API keys for pipelines. Designed so an agent can drive it safely.

This project is planned for M4. The page fills in as it ships.

What it shows

Stack

  • Node
  • Commander
  • keytar

Run it locally

Clone just this example, copy the env file, and follow its README.

terminal
npx degit jibaru/buildwithclerk/examples/relay-cli relay-cli
cd relay-cli
cp .env.example .env
pnpm install && pnpm dev