@d3ara1n/pi-provider-sensenova
SenseNova (商汤日日新) provider for pi — registers sensenova-6.7-flash-lite model via OpenAI-compatible API
Package details
Install @d3ara1n/pi-provider-sensenova from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@d3ara1n/pi-provider-sensenova- Package
@d3ara1n/pi-provider-sensenova- Version
1.1.0- Published
- Jul 10, 2026
- Downloads
- not available
- Author
- d3ara1n
- License
- MIT
- Types
- extension
- Size
- 4.4 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@d3ara1n/pi-provider-sensenova
SenseNova (商汤日日新) provider for Pi Coding Agent — registers the SenseNova Token Plan models via OpenAI-compatible API.
Provider
| Provider ID | Name | API Key Env |
|---|---|---|
sensenova-plan |
SenseNova (Token Plan) | $SENSENOVA_API_KEY |
Models
| Model | Reasoning | Input | Context | Max Output |
|---|---|---|---|---|
sensenova-6.7-flash-lite |
Yes | text, image | 256K | 64K |
sensenova-6.7-flash-lite is SenseTime's lightweight multimodal agent model for real-world workflows. It supports:
- Text + image input (OpenAI Vision-compatible format)
- Reasoning (chain-of-thought via
reasoningfield, controlled byreasoning_effort) - Tool calling (
tools/tool_choice) - JSON mode (
response_format: { type: "json_object" }) - Streaming (SSE, with
usagein last chunk)
Installation
pi install npm:@d3ara1n/pi-provider-sensenova
Or add to ~/.pi/agent/settings.json:
{
"extensions": [
"/absolute/path/to/pi-extensions/packages/pi-provider-sensenova"
]
}
Set your API key:
export SENSENOVA_API_KEY="sk-..."
Or use /login in pi to store it in ~/.pi/agent/auth.json:
{ "sensenova-plan": { "apiKey": "sk-..." } }
Getting an API Key
- Visit SenseNova Platform
- Go to 管理中心 → API-Key 管理 → 创建 API-Key
- Copy the key immediately (it's shown only once)
The Token Plan is currently in free public beta — no credit card required, up to 1,500 calls per model every 5 hours, with up to 20 API keys.
Dependencies
None — this is a standalone provider with no pi-extension dependencies. It uses pi's built-in openai-completions streaming.
Usage Quota Reporting
Not yet implemented. SenseNova does not currently expose a public quota or balance API. When one becomes available, quota reporting will be added via @d3ara1n/pi-usage-block-core.