bailian-coding-helper
v0.1.0
Published
An interactive CLI for setting up Bailian with AI coding agents.
Readme
bailian-coding-helper
An interactive CLI for setting up Alibaba Cloud Bailian with AI coding agents.
It provides a prompt-based interface powered by the official bailian-cli command metadata and runtime.
Usage
npx bailian-coding-helper@latestThe wizard asks for your coding agent, Bailian access plan, API key, and model. API keys are hidden during input and omitted from the configuration summary. Supported agents are read from the installed official command package.
Supported access modes:
- Coding Plan
- Token Plan
- Pay-as-you-go
- Custom Base URL
Supported agents:
- Claude Code
- Qwen Code
- Codex
- OpenCode
- OpenClaw
- Hermes Agent
The model picker contains the text-generation models from the Token Plan Team model catalog, with glm-5.2 as the recommended default. Each maintained model includes its official context window. The wizard displays that documentation link and always provides an Other model option, so you can enter a newly released model before this package updates its maintained catalog.
Claude Code and OpenClaw also receive a context-window prompt with the selected model's known limit as the default. Claude Code is configured with its context environment setting and the [1m] model suffix for extended-context models. OpenClaw uses the official --context-window flag. Other agents are not prompted until their configuration format is explicitly supported.
How it works
The selected values are passed to the official configAgent command through bailian-cli-runtime, equivalent to:
bl config agent --agent <agent> --base-url <url> --api-key <key> --model <model>Agent-specific configuration files, merging, and backups remain the responsibility of the official command implementation.
License
MIT License © jinghaihan
