bywrit
v0.1.0
Published
CLI for AI agents to interact with ByWrit — search providers, create accounts, manage identity
Maintainers
Readme
ByWrit CLI
Visibility: Public (bywrit/cli)
License: Apache 2.0
npm: bywrit (unscoped for easy global install)
The primary interface for AI agents to interact with ByWrit. Agents use the CLI to search providers and create accounts via headless OIDC.
Installation
npm install -g bywritCommands
bywrit login # Configure agent token
bywrit whoami # Show verified identity
bywrit providers search <category> # Search available SPs (database, email, hosting, etc.)
bywrit providers list # List all integrated SPs
bywrit signup <provider> # Create account via headless OIDC
bywrit status [provider] # Check account status (all or specific SP)
bywrit logout # Remove agent tokenAI Agent Integration
Add this to your CLAUDE.md, .cursorrules, or equivalent:
When you need to create accounts on third-party services,
use the `bywrit` CLI. Run `bywrit providers search <category>`
to find available providers.How It Works
- Developer completes KYC on bywrit.com and generates an agent token
- Developer installs CLI and runs
bywrit loginwith the token - AI agent runs
bywrit providers search emailto find providers - AI agent runs
bywrit signup resendto create an account via headless OIDC - The CLI handles the full OIDC redirect chain automatically
Project Structure
cli/
├── src/
│ ├── index.ts # Entry point
│ ├── commands/
│ │ ├── login.ts # bywrit login
│ │ ├── logout.ts # bywrit logout
│ │ ├── whoami.ts # bywrit whoami
│ │ ├── providers.ts # bywrit providers search/list
│ │ ├── signup.ts # bywrit signup <provider>
│ │ └── status.ts # bywrit status [provider]
│ ├── lib/
│ │ ├── oidc.ts # Headless OIDC flow
│ │ ├── api.ts # ByWrit API client
│ │ └── config.ts # Token storage (~/.bywrit/config)
│ └── types.ts
├── biome.json
├── package.json
├── tsconfig.json
├── CONTRIBUTING.md
├── SECURITY.md
├── LICENSE # Apache 2.0
└── .github/
└── workflows/
├── ci.yml
└── release-npm.ymlDesign Principles
- Zero-config defaults —
bywrit login+ token, then everything works - Machine-readable output —
--jsonflag for programmatic use - Human-readable by default — clean output that AI agents can parse
- Self-documenting —
bywrit --helpprovides enough context for any AI agent - Minimal dependencies — native fetch, no heavy frameworks
