🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@flock-io/api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flock-io/api

CLI for the FLock Model API Platform — manage models, API keys, teams, billing, and chat completions from the terminal.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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-api

Quick 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 you@yourorg.com --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" --json

Commands

CommandDescription
flock auth loginSign in (interactive or --email/--password)
flock auth logoutRemove stored credentials
flock auth whoamiShow current user
flock auth tokenPrint raw bearer token
flock models listBrowse model catalog
flock models providersList LLM providers
flock api-keys listList API keys
flock api-keys createCreate a new key
flock api-keys updateRename a key
flock api-keys removeDelete a key
flock orgs listList organizations
flock orgs createCreate an organization
flock orgs membersList org members
flock teams listList teams
flock teams createCreate a team
flock teams getGet team details
flock teams inviteInvite a member
flock teams remove-memberRemove a member
flock balanceCheck credit balance
flock usageQuery usage logs
flock chatSend a chat completion
flock admin users listAdmin: list users
flock admin models createAdmin: add a model
flock config set api-urlSet platform URL
flock config showShow current config

Run flock with no arguments to enter interactive REPL mode.

Every command supports --help. Most support --json for structured output.

Environment Variables

VariablePurpose
FLOCK_API_BASE_URLOverride platform URL (default: https://platform.flock.io)
FLOCK_API_TOKENBearer token (skips login)
FLOCK_LLM_API_KEYDefault API key for flock chat

Full Documentation

See the complete agent skill reference at platform.flock.io/agents.

License

Proprietary. See LICENSE.

Keywords

flock

FAQs

Package last updated on 07 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts