Skip to content

Socaity CLI Reference

pip install socaity registers a socaity command on your shell. It is the unified CLI for authentication, installing catalog services, and deploying your own. Auth and service management run directly. The deploy commands wrap APIPod.

Install

Installing the SDK puts the socaity executable on your PATH (entry point socaity = socaity.cli:main). A fresh install ships no model stubs. You add a service with socaity install <service> (and pull the official ones with socaity update). The service registry then keeps your installed set in sync at import time.

terminal
pip install socaity

Commands

CommandWhat it doesAuth
socaity loginAuthenticate via browser and store credentials on disk.
public
socaity logoutRemove stored credentials.
public
socaity whoamiShow the logged-in user.
login required
socaity install <id>Install a catalog service by id (also -i <id>).
login required
socaity updateSync installed services with the platform.
login required
socaity scanGenerate apipod.json for your project (via APIPod).
login required
socaity build [file]Build the deployment container (via APIPod).
login required
socaity startRun your service locally or on a provider (via APIPod).
login required

Authenticate

socaity login opens a browser, completes sign-in at socaity.ai, and stores a scoped key on disk, much like gh auth login. Use --no-browser on headless machines.

terminal
# Authenticate once: opens a browser and stores a scoped key on disk.
socaity login

# Headless / CI machines:
socaity login --no-browser

# Inspect or end your session.
socaity whoami
socaity logout

Install services

Pin a catalog service to generate its Python client, then keep your installed set in sync. Install only the services you need, one catalog id at a time. Find ids on the API catalog.

terminal
# Install a catalog service so its typed client becomes importable.
socaity install black-forest-labs/flux-schnell

# Short flag form for another service.
socaity -i deepseek-ai/deepseek-v3

# Sync already-installed services with the platform.
socaity update

Deploy your own service

scan, build, and start package and run a service you wrote. They delegate to APIPod; see its reference for the full flag set, providers, and compute types.

terminal
# Package and run a service you built (these delegate to APIPod).
socaity scan                                   # generate apipod.json
socaity build main.py --provider runpod        # build the deploy container
socaity start --compute serverless --provider runpod

Help

terminal
socaity -h               # list all commands and flags
socaity login --help     # per-command help

Using a service from Python

After socaity install, import the service and call it. Authentication comes from your socaity login session, or from SOCAITY_API_KEY if you set it explicitly.

python
import os
from socaity.sdk.replicate.black_forest_labs import flux_schnell

# After `socaity login`, the stored key is used automatically.
# On CI / servers, set the env var yourself instead:
flux = flux_schnell(api_key=os.getenv("SOCAITY_API_KEY"))

image = flux(prompt="a cat on mars").get_result()
image.save("cat.png")

Next steps

  • Deploy commands reference : the deploy engine behind socaity scan / build / start. Full flags, providers, and compute types.
  • Python SDK reference : how to import services, submit jobs, and read results.
  • Secrets : generate a SOCAITY_API_KEY for CI or servers where browser login is not available.
  • Server updates : how the service registry keeps model stubs in sync.