← Catalog

@iaziz786/pi-cmd-login

Pi extension that adds Command Code (commandcode.ai) as a model provider via its OpenAI-compatible chat completions API.

Extension

Install

Install with PiG

pig install npm:@iaziz786/pi-cmd-login

Install with Pi

pi install npm:@iaziz786/pi-cmd-login
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.4.11 (README.md). PiG does not review it.

pi-cmd-login

pi extension that adds Command Code as a model provider through its OpenAI-compatible chat completions API.

Install

pi install npm:@iaziz786/pi-cmd-login
# or from git:
pi install git:github.com/iAziz786/pi-cmd-login

Then authenticate (prompts for your key, stores it in ~/.pi/agent/auth.json):

/login command-code

Permissions: outbound HTTPS to api.commandcode.ai only. No filesystem or subprocess access. Key stored by pi in ~/.pi/agent/auth.json.

Models

Static roster of Command Code models (canonical ids from GET /provider/v1/models):

ModelID
Claude Fable 5claude-fable-5
Claude Fable 5.1claude-fable-5-1
Claude Haiku 4.5claude-haiku-4-5-20251001
Claude Opus 4.7claude-opus-4-7
Claude Opus 4.8claude-opus-4-8
Claude Opus 5claude-opus-5
Claude Sonnet 4.6claude-sonnet-4-6
Claude Sonnet 5claude-sonnet-5
DeepSeek V4 Flash (latest)deepseek/deepseek-v4-flash
DeepSeek V4 Flash Fastdeepseek/deepseek-v4-flash-fast
DeepSeek V4 Flash Vision (exp)deepseek/deepseek-v4-flash-vision-exp
DeepSeek V4 Pro (latest)deepseek/deepseek-v4-pro
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash
Fugu Ultrasakana/fugu-ultra
Gemini 3.1 Flash Litegoogle/gemini-3.1-flash-lite
Gemini 3.5 Flashgoogle/gemini-3.5-flash
Gemini 3.5 Flash Litegoogle/gemini-3.5-flash-lite
Gemini 3.6 Flashgoogle/gemini-3.6-flash
Gemini 3.7 Flashgoogle/gemini-3.7-flash
Gemini 3.8 Flashgoogle/gemini-3.8-flash
GLM-5zai-org/GLM-5
GLM-5.1zai-org/GLM-5.1
GLM-5.2zai-org/GLM-5.2
GLM-5.2 Fastzai-org/GLM-5.2-Fast
GLM-5.3zai-org/GLM-5.3
GLM-5.3 Flashz-ai/glm-5.3-flash
GPT-5.3 Codexgpt-5.3-codex
GPT-5.4gpt-5.4
GPT-5.4 Minigpt-5.4-mini
GPT-5.5gpt-5.5
GPT-5.6 Lunagpt-5.6-luna
GPT-5.6 Solgpt-5.6-sol
GPT-5.6 Terragpt-5.6-terra
Grok 4.5xai/grok-4.5
Grok 4.6xai/grok-4.6
Inklingthinkingmachines/inkling
Inkling Smallthinkingmachines/inkling-small
Kimi K2.5moonshotai/Kimi-K2.5
Kimi K2.6moonshotai/Kimi-K2.6
Kimi K2.7 Codemoonshotai/Kimi-K2.7-Code
Kimi K2.7 Code HighSpeedmoonshotai/Kimi-K2.7-Code-Highspeed
Kimi K3moonshotai/Kimi-K3
Laguna S 2.1poolside/laguna-s-2.1-free
Ling 3.0 Flash Santeinclusionai/ling-3.0-flash-sante:free
LongCat 2.0meituan/LongCat-2.0:free
MiMo V2.5xiaomi/mimo-v2.5
MiMo V2.5 Proxiaomi/mimo-v2.5-pro
MiniMax M2.5MiniMaxAI/MiniMax-M2.5
MiniMax M2.7MiniMaxAI/MiniMax-M2.7
MiniMax M3MiniMaxAI/MiniMax-M3
Muse Spark 1.1meta/muse-spark-1.1
Muse Spark 1.2meta/muse-spark-1.2
Muse Spark 1.2 Contributormeta/muse-spark-1.2-contributor
Muse Spark 1.3meta/muse-spark-1.3
Muse Spark 1.3 Contributormeta/muse-spark-1.3-contributor
Nemotron 3 Ultranvidia/nemotron-3-ultra-550b-a55b
Qwen 3.6 Max PreviewQwen/Qwen3.6-Max-Preview
Qwen 3.6 PlusQwen/Qwen3.6-Plus
Qwen 3.7 FlashQwen/Qwen3.7-Flash
Qwen 3.7 MaxQwen/Qwen3.7-Max
Qwen 3.7 PlusQwen/Qwen3.7-Plus
Qwen 3.8 27BQwen/Qwen3.8-27B
Qwen 3.8 FlashQwen/Qwen3.8-Flash
Qwen 3.8 MaxQwen/Qwen3.8-Max
Qwen 3.8 Max 0902Qwen/Qwen3.8-Max-0902
Step 3.5 Flashstepfun/Step-3.5-Flash
Step 3.7 Flashstepfun/Step-3.7-Flash
Tencent Hy3tencent/hy3-paid
Tencent Hy4 Previewtencent/hy4-preview

Per-1M-token USD costs are baked in from https://commandcode.ai/models.

DeepSeek time-of-day pricing

DeepSeek V4 Flash/Pro bill at different rates depending on UTC hour:

BandHours (UTC)Flash $/M in/out/cachePro $/M in/out/cache
Off-peak17h/day0.15 / 0.60 / 0.0030.66 / 1.98 / 0.02
Peak7h/day · 01–04 & 06–100.30 / 1.20 / 0.0061.32 / 3.96 / 0.04

DeepSeek V4.1 Flash shares the V4 Flash bands.

Since 2026-08-23 00:00 Beijing time, weekends (Sat/Sun, Beijing time) are charged at the off-peak rate all day; weekdays keep the peak/off-peak bands above. Calls before that date are settled under the old rules.

pi models carry a flat cost, so the extension recomputes DeepSeek cost in a message_end hook using the rate band for the current UTC hour. Logic lives in pricing.ts (unit-tested).

Test

bun test