> ## 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**              | `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 alias
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.

<Steps>
  <Step title="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.
    </Note>
  </Step>

  <Step title="Create Profile">
    ```bash theme={null}
    ccs api create --preset alibaba-coding-plan
    # Enter profile name (default: albb)
    # Enter API key: sk-sp-...
    ```
  </Step>

  <Step title="Use Profile">
    ```bash theme={null}
    ccs albb "implement binary search"
    ```
  </Step>
</Steps>

## 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.
</Note>

## 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 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

<CardGroup cols={2}>
  <Card title="API Profiles Overview" icon="key" href="/providers/concepts/api-profiles">
    Configure other API-based providers
  </Card>

  <Card title="Qwen OAuth Status" icon="code" href="/providers/oauth/qwen">
    Qwen account linking is unavailable; use this API-key route
  </Card>

  <Card title="OpenRouter" icon="arrow-right" href="/features/proxy/openrouter">
    Access 300+ models via single API key
  </Card>

  <Card title="All Providers" icon="grid" href="/providers/concepts/overview">
    Compare all supported providers
  </Card>
</CardGroup>
