@flock-io/api
v0.1.0
Published
CLI for the FLock Model API Platform — manage models, API keys, teams, billing, and chat completions from the terminal.
Downloads
78
Maintainers
Readme
flock-api
CLI for the FLock Model API Platform — manage models, API keys, teams, billing, and chat completions from the terminal.
Install
npm install -g flock-apiQuick Start
# 1. Point to the platform (default: https://platform.flock.io)
flock config set api-url https://platform.flock.io
# 2. Sign in
flock auth login --email [email protected] --password '...'
# 3. Use it
flock models list --json
flock api-keys list --json
flock balance --json
flock chat --model qwen3-30b-a3b-instruct-2507 --api-key sk-your-key "Hello" --jsonCommands
| Command | Description |
|---------|-------------|
| flock auth login | Sign in (interactive or --email/--password) |
| flock auth logout | Remove stored credentials |
| flock auth whoami | Show current user |
| flock auth token | Print raw bearer token |
| flock models list | Browse model catalog |
| flock models providers | List LLM providers |
| flock api-keys list | List API keys |
| flock api-keys create | Create a new key |
| flock api-keys update | Rename a key |
| flock api-keys remove | Delete a key |
| flock orgs list | List organizations |
| flock orgs create | Create an organization |
| flock orgs members | List org members |
| flock teams list | List teams |
| flock teams create | Create a team |
| flock teams get | Get team details |
| flock teams invite | Invite a member |
| flock teams remove-member | Remove a member |
| flock balance | Check credit balance |
| flock usage | Query usage logs |
| flock chat | Send a chat completion |
| flock admin users list | Admin: list users |
| flock admin models create | Admin: add a model |
| flock config set api-url | Set platform URL |
| flock config show | Show current config |
Run flock with no arguments to enter interactive REPL mode.
Every command supports --help. Most support --json for structured output.
Environment Variables
| Variable | Purpose |
|----------|---------|
| FLOCK_API_BASE_URL | Override platform URL (default: https://platform.flock.io) |
| FLOCK_API_TOKEN | Bearer token (skips login) |
| FLOCK_LLM_API_KEY | Default API key for flock chat |
Full Documentation
See the complete agent skill reference at platform.flock.io/agents.
License
Proprietary. See LICENSE.
