Using Alibaba Cloud With Teklrn AI
Teklrn AI supports Alibaba Cloud Model Studio (DashScope) through the native Alibaba AI SDK provider. Use it to run Qwen and other DashScope-hosted models directly from Teklrn.
Website: https://www.alibabacloud.com/product/modelstudio
Getting an API Key
- Sign in to Alibaba Cloud Model Studio or DashScope.
- Open the API key section for your workspace.
- Create a key and copy it immediately.
- Store the key securely; do not commit it to your repository.
Configuration in Teklrn AI
Open Settings (gear icon) and go to the Providers tab to add Alibaba Cloud. Enter your DashScope API key and choose a supported model from the model picker.
The extension stores this in your Teklrn.json config file. You can also edit the config file directly — see the CLI tab for the file format.
Tips and Notes
- Native provider: Teklrn uses the native Alibaba AI SDK provider, not a generic compatibility shim, when you select the built-in Alibaba provider.
- Cache controls: Teklrn forwards provider cache controls for compatible Alibaba/DashScope models, which can reduce repeated context cost where the model supports caching.
- Regional catalogs: Model availability varies by account, region, and gateway. Check the DashScope console for the exact model IDs available to your account.
- Pricing and limits: Refer to Alibaba Cloud Model Studio pricing and rate-limit documentation for current usage details.
Troubleshooting
- Authentication errors: Verify
DASHSCOPE_API_KEYis set in the same shell that launches Teklrn, or stored in your Teklrn provider config. - Model not found: Confirm the model ID is available in your DashScope account and try the model picker to see Teklrn's current catalog.
- Region mismatch: If your account uses the China-region catalog, try the
alibaba-cn/<model-id>provider prefix.