pi-morse-provider0.1.0
Morse provider extension for pi coding agent: private, OpenAI-compatible inference for open-weight models (DeepSeek, GLM, Kimi, Qwen and more)
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-morse-provider
A pi provider extension for Morse, a private, OpenAI-compatible inference API for open-weight models.
- Private: Morse keeps no prompt and no response, and providers see Morse as the customer, not you
- Open-weight coding models: DeepSeek V4.1 Flash, GLM 5.3, Kimi K3.1 Pro, Qwen3 Coder, MiniMax, MiMo and gpt-oss
- Up to 1M tokens of context, image input on vision models
- Reasoning levels per model:
/thinkingoffers only the efforts each model takes - Cost tracking with Morse's per-million-token prices for input, cached input and output
- Standard Chat Completions: streaming and tool calling through pi's built-in
openai-completionsAPI
Installation
From npm:
pi install npm:pi-morse-provider
From GitHub:
pi install git:github.com/trymorse/pi-morse-provider
Or try it for one session:
pi -e npm:pi-morse-provider
Authentication
Create an API key in the Morse console, then either export it:
export MORSE_API_KEY=your-key
or add it to ~/.pi/agent/auth.json:
{
"morse": { "type": "api_key", "key": "your-key" }
}
Requests are paid from your Morse credits at each model's price.
Usage
Run /model in pi and pick a morse model, or start pi with one:
pi --model morse/deepseek/deepseek-v4.1-flash
pi --model morse/z-ai/glm-5.3 --thinking high
deepseek/deepseek-v4.1-flash is a good default: 1M context, tools, reasoning and image input at $0.30 in / $1.20 out per million tokens.
Models
| Model ID | Name | Context | Images | Thinking levels | Input $/M | Cached input $/M | Output $/M |
|---|---|---|---|---|---|---|---|
deepseek/deepseek-v4.1-flash |
DeepSeek V4.1 Flash | 1M | yes | off, low, high, max | $0.3 | $0.006 | $1.20 |
deepseek/deepseek-v4-pro-0813 |
DeepSeek V4 Pro | 1M | no | off, low, high, max | $1.32 | $0.13 | $3.96 |
z-ai/glm-5.3 |
GLM 5.3 | 1M | no | low, high, max | $1.40 | $0.26 | $4.40 |
z-ai/glm-5.3-flash |
GLM 5.3 Flash | 1M | yes | low, high, max | $0.15 | $0.03 | $0.5 |
moonshotai/kimi-k3.1-pro |
Kimi K3.1 Pro | 1M | yes | off, low, high, max | $2.00 | $0.2 | $10.00 |
qwen/qwen3-coder |
Qwen3 Coder 480B A35B | 256K | no | no | $0.375 | $0.125 | $1.25 |
qwen/qwen3.8-27b |
Qwen3.8 27B | 256K | no | low, medium, xhigh | $0.5 | $0.1 | $3.00 |
qwen/qwen3.6-35b-a3b |
Qwen3.6 35B A3B | 256K | no | no | $0.375 | $0.375 | $2.25 |
minimax/minimax-m3.1-flash |
MiniMax M3.1 Flash | 1M | yes | low, medium, high, xhigh, max | $0.15 | $0.015 | $0.6 |
xiaomi/mimo-v2.6-pro |
MiMo V2.6 Pro | 1M | yes | off, high | $0.435 | $0.0036 | $0.87 |
openai/gpt-oss-120b |
gpt oss 120b | 128K | no | low, medium, high | $0.04625 | $0.04625 | $0.2125 |
deepseek-ai/deepseek-v4.1-flash-uncensored |
DeepSeek V4.1 Flash Uncensored | 1M | yes | off, low, high, max | $0.5 | $0.05 | $1.50 |
Prices are per million tokens, from the public model list (GET https://inference.trymorse.ai/v1/models), and can change. The full catalog, including TEE-hosted and uncensored variants, is on the models page.
Configuration
| Variable | Description | Default |
|---|---|---|
MORSE_API_KEY |
Your Morse API key | (required unless set in auth.json) |
MORSE_BASE_URL |
API endpoint | https://inference.trymorse.ai/v1 |
Development
npm install
npm run typecheck
npm test
npm run update-models # regenerate models.ts from the public model list
pi -e ./
Links
License
MIT