CLI Commands
Complete reference for all PolarGrid CLI commands.Authentication
Login
Opens browser for OAuth authentication:Whoami
Shows your current authentication context:Organizations
List Organizations
Switch Organization
API Keys
Create Key
-p, --permissions <level>:read-only,read-write, oradmin(default:read-write)--project <id>: Scope key to a specific project
Revoke Key
Inference
Chat
Interactive streaming chat with edge models:-r, --region <region>: Edge region-m, --model <model>: Model (default:qwen-3.5-27b)-s, --system <prompt>: System prompt-t, --temperature <n>: Temperature 0.0-2.0 (default:0.7)--no-interactive: Single-shot mode, no follow-up
/exit or /quit to end the conversation.
Completions
Generate text completions:-r, --region <region>: Edge region-m, --model <model>: Model (default:qwen-3.5-27b)--max-tokens <n>: Maximum tokens (default:200)-t, --temperature <n>: Temperature 0.0-2.0 (default:0.7)
Text-to-Speech
Convert text to audio:-r, --region <region>: Edge region-m, --model <model>: TTS model (default:kokoro-82m)-v, --voice <voice>: Voice (default:af_bella)-f, --format <format>:mp3,wav,opus,flac(default:mp3)-o, --output <file>: Output file (default:output.<format>, e.g.,output.mp3)--speed <n>: Speed 0.25-4.0 (default:1.0)
alloy, echo, fable, onyx, nova, shimmer, af_bella, af_sarah, am_adam, am_michael, bf_emma, bf_isabella, bm_george, bm_lewis
Transcribe
Transcribe audio to text:-r, --region <region>: Edge region-m, --model <model>: STT model (default:whisper-large-v3-turbo)-l, --language <lang>: Language code (e.g.,en,fr,es)-f, --format <format>:text,json,srt,vtt,verbose_json(default:text)-o, --output <file>: Output file (default: stdout)
Translate
Translate audio to English:-r, --region <region>: Edge region-m, --model <model>: STT model (default:whisper-large-v3-turbo)-f, --format <format>:text,json(default:text)-o, --output <file>: Output file (default: stdout)
Models
Manage models on edge servers. RequiresPOLARGRID_API_KEY.
List Models
Model Status
GPU
Monitor and manage GPU resources. RequiresPOLARGRID_API_KEY.
GPU Status
GPU Memory
Regions
List Regions
Ping Regions
Testing
Health Check
Inference Test
-r, --region <region>: Target region (required unless default set)-m, --model <model>: Model to use (default:qwen-3.5-27b)-p, --prompt <prompt>: Prompt to send (default: “Hello, how are you?”)
Shell Completions
This is
polargrid completion (singular) — not to be confused with polargrid completions (text inference).Configuration
Available Config Options
Examples
Configuration Files
The CLI stores configuration in~/.polargrid/:
Set
POLARGRID_DISABLE_KEYCHAIN=1 to force the encrypted-file backend. An existing plaintext credentials.json from an older CLI is migrated into the encrypted store on first use and then deleted.
