DashScope Pi Agent Configuration: Step-by-Step Guide to Token Plan Setup

12 days ago 高效码农

How to Configure DashScope Token Plan in Pi Agent To connect Alibaba Cloud DashScope’s Token Plan to Pi Agent, you need to register [https://coding.dashscope.aliyuncs.com/v1](https://coding.dashscope.aliyuncs.com/v1) as an OpenAI-compatible service within Pi’s local configuration files. By default, Pi’s interactive terminal login menu (/login) only lists natively pre-configured providers. You won’t see an option to enter a custom API endpoint directly in that UI menu. The solution is straightforward: define your service configuration in a local models.json file. Once the base URL, authentication key, and model IDs are mapped correctly, restart Pi and select your custom model through the /model menu. Here is …