scalattice-cli
v0.2.4
Published
Scalattice CLI - developer API keys, provider fleet control, OpenAI-compatible env, credits, MCP.
Downloads
1,263
Maintainers
Readme
Scalattice CLI
Sign in, mint an account management key (slt_mgmt_…) for automation, create an inference API key (slt_…) for OpenAI-compatible SDKs, check credits, and manage a provider fleet from the terminal. Optional MCP mode for AI coding agents.
Product: scalattice.com/cli · npm: scalattice-cli · Cloud docs: developers#cli · providers#fleet-api · Installer: scalattice.cloud/install/cli
Install
# Paste-friendly
curl -fsSL https://scalattice.cloud/install/cli | sh
# Or with npm (Node 18+)
npm install -g scalattice-cliQuick start
scalattice setup
eval "$(scalattice init)"
scalattice creditsThen use any OpenAI SDK:
from openai import OpenAI
client = OpenAI() # uses OPENAI_BASE_URL + OPENAI_API_KEY
print(client.models.list())Keys
| Prefix | Role |
| --- | --- |
| slt_mgmt_… | Account management: credits, inference-key CRUD, fleet |
| slt_… | Inference only (chat/completions via api.*) |
| slt_provider_… | Machine agent tokens (not for this CLI) |
Create/roll management keys on Account or via scalattice setup / scalattice provider keys.
Commands
| Command | What it does |
| --- | --- |
| scalattice setup | Login → mint mgmt key → create inference key → print exports |
| scalattice login / logout | Session only |
| scalattice keys list / keys create | Inference API keys (via mgmt key) |
| scalattice init | Print export OPENAI_BASE_URL=... and OPENAI_API_KEY=... |
| scalattice credits | Wallet + model grants (via mgmt key) |
| scalattice whoami | Show config / account |
| scalattice provider setup | Ensure provider audience + mgmt key |
| scalattice provider machines / earnings | Fleet status and earnings |
| scalattice provider pause / resume | Pause or resume all machines |
| scalattice provider schedule | Patch one machine’s schedule |
| scalattice provider keys … | List / create / roll / revoke management keys (session) |
| scalattice mcp | MCP stdio server for Cursor / Claude Desktop |
Config: ~/.config/scalattice/config.json (mode 0600).
Env overrides: SCALATTICE_CLOUD_URL, SCALATTICE_API_URL, SCALATTICE_API_KEY, SCALATTICE_MGMT_KEY, SCALATTICE_SESSION_TOKEN.
Provider fleet
scalattice provider setup
scalattice provider machines
scalattice provider pause # or resumeSee Fleet API docs.
MCP (optional)
MCP is not a second install. After scalattice setup:
{
"mcpServers": {
"scalattice": {
"command": "scalattice",
"args": ["mcp"]
}
}
}License
MIT
