Sign in, create a developer API key, print OpenAI-compatible env vars, and check credits - from the terminal. Optional MCP mode for AI coding agents.
Product: scalattice.com/cli · npm: scalattice-cli · Cloud docs: developers#cli · Installer: scalattice.cloud/install/cli
# Paste-friendly
curl -fsSL https://scalattice.cloud/install/cli | sh
# Or with npm (Node 18+)
npm install -g scalattice-cliscalattice 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())| Command | What it does |
|---|---|
scalattice setup |
Magic-code login → developer profile → create API key → print exports |
scalattice login / logout |
Session only |
scalattice keys list / keys create |
Manage API keys |
scalattice init |
Print export OPENAI_BASE_URL=... and OPENAI_API_KEY=... |
scalattice credits |
GET /v1/credits (wallet + model grants) |
scalattice whoami |
Show config paths / what’s stored |
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_SESSION_TOKEN.
MCP is not a second install. After scalattice setup:
{
"mcpServers": {
"scalattice": {
"command": "scalattice",
"args": ["mcp"]
}
}
}Tools: scalattice_credits, scalattice_models, scalattice_env.
git clone https://github.com/scalattice/scalattice-cli.git
cd scalattice-cli
node bin/scalattice.js --helpMIT
