> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ccs.kaitran.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Alibaba Coding Plan Provider

> Access Qwen3 Coder models via Alibaba Cloud Coding Plan API key

# Alibaba Coding Plan Provider

Access Alibaba Cloud's Qwen3 Coder models through the Coding Plan API — a cost-effective option for high-volume coding tasks with strong context windows.

## Overview

| Field | Details |
| - | - |
| **Preset ID** | `alibaba-coding-plan` |
| **Aliases** | `qwencloud`, `qwen-cloud`, `alibaba`, `acp` |
| **Default Profile Name** | `albb` |
| **Default Model** | `qwen3-coder-plus` |
| **Base URL** | `https://coding-intl.dashscope.aliyuncs.com/apps/anthropic` |
| **Auth Method** | API Key (`sk-sp-...`) |
| **Category** | Recommended |

## Quick Start

```bash theme={null}
# Create profile with preset (prompts for API key)
ccs api create --preset alibaba-coding-plan

# Or use aliases
ccs api create --preset qwencloud
ccs api create --preset alibaba

# Run with default profile name
ccs albb "review this pull request"
```

## Authentication

Alibaba Coding Plan uses API key authentication — no OAuth required.

**1. Get API Key**

Sign in to [Alibaba Cloud Model Studio](https://bailian.console.aliyun.com/) and obtain a Coding Plan key.

Key format: `sk-sp-...`

> [!NOTE]
>
> Coding Plan keys are distinct from standard Alibaba Cloud API keys. Obtain them from the Coding Plan section of Model Studio.

**2. Create Profile**

```bash theme={null}
ccs api create --preset alibaba-coding-plan
# Enter profile name (default: albb)
# Enter API key: sk-sp-...
```

**3. Use Profile**

```bash theme={null}
ccs albb "implement binary search"
```

## Available Models

| Model | Input/M | Output/M | Context | Best For |
| - | - | - | - | - |
| `qwen3-coder-plus` | \$1.00 | \$5.00 | 1M | Balanced coding tasks (default) |
| `qwen3-coder-flash` | \$0.30 | \$1.50 | 1M | Fast, high-volume tasks |

> [!NOTE]
>
> Both models support 1M token context windows. Cache rates: creation = input price × 1.0, read = input price × 0.2.

## Configuration

### Via Dashboard

```bash theme={null}
ccs config
# Navigate to API Profiles → Create → Alibaba Coding Plan
```

The Alibaba Coding Plan card appears in the recommended presets sidebar.

### Manual Configuration

Create `~/.ccs/albb.settings.json`:

```json theme={null}
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "sk-sp-your-key-here",
    "ANTHROPIC_MODEL": "qwen3-coder-plus"
  }
}
```

Register in `~/.ccs/config.yaml`:

```yaml theme={null}
profiles:
  albb: ~/.ccs/albb.settings.json
```

### Model Switching

```bash theme={null}
# Use flash model for speed
ANTHROPIC_MODEL=qwen3-coder-flash ccs albb "quick code review"

# Or edit settings file
# "ANTHROPIC_MODEL": "qwen3-coder-flash"
```

## Commands Reference

```bash theme={null}
# Create profile
ccs api create --preset alibaba-coding-plan
ccs api create --preset qwencloud       # alias
ccs api create --preset qwen-cloud      # alias
ccs api create --preset alibaba          # alias
ccs api create --preset acp              # alias

# Use profile (default name: albb)
ccs albb "your prompt"

# List configured API profiles
ccs api list

# Delete profile
ccs api delete albb
```

## Troubleshooting

### 401 Unauthorized

**Symptom:** Authentication error on first request

**Cause:** Invalid or incorrectly formatted API key

**Solution:**

* Verify key starts with `sk-sp-`
* Re-create profile: `ccs api delete albb && ccs api create --preset alibaba-coding-plan`
* Confirm key is a Coding Plan key (not a standard Alibaba Cloud key)

### 404 Not Found

**Symptom:** Model not found error

**Cause:** Model name mismatch

**Solution:** Use exact model IDs: `qwen3-coder-plus` or `qwen3-coder-flash`

### High Latency

The Coding Plan endpoint routes through Alibaba Cloud's international network. For users in China, consider the domestic endpoint instead.

## Storage Locations

| Path | Description |
| - | - |
| `~/.ccs/albb.settings.json` | Profile settings (base URL, API key, model) |
| `~/.ccs/config.yaml` | Profile registration |

## Cost Information

| Model | Input/M | Output/M | Cache Create/M | Cache Read/M |
| - | - | - | - | - |
| `qwen3-coder-plus` | \$1.00 | \$5.00 | \$1.00 | \$0.20 |
| `qwen3-coder-flash` | \$0.30 | \$1.50 | \$0.30 | \$0.06 |

Pricing sourced from Alibaba Cloud Model Studio. Verify current rates at [alibabacloud.com](https://www.alibabacloud.com/help/en/model-studio/model-pricing).

## Next Steps

> [card] [API Profiles Overview](https://docs.ccs.kaitran.ca/providers/concepts/api-profiles.md)
>
> Configure other API-based providers

> [card] [Qwen OAuth Status](https://docs.ccs.kaitran.ca/providers/oauth/qwen.md)
>
> Qwen account linking is unavailable; use this API-key route

> [card] [OpenRouter](https://docs.ccs.kaitran.ca/features/proxy/openrouter.md)
>
> Access 300+ models via single API key

> [card] [All Providers](https://docs.ccs.kaitran.ca/providers/concepts/overview.md)
>
> Compare all supported providers


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.