[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Azure SKU pricing](https://spiral.ai/integrations/opencode/azure-sku-pricing)

# How to Use Azure SKU pricing in opencode

Returns Microsoft's retail rate records for a known Azure SKU and region, with meter names, billing units, and effective dates. Use it to inspect the charges attached to a specific resource size or storage SKU.

|  |  |
| --- | --- |
| Model | Azure SKU pricing |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Azure SKU pricing in opencode

- Use Azure SKU pricing for Standard_D2s_v3 in eastus, then add a table of returned products, meters, billing units, and effective dates to our architecture notes.
- Read the Terraform files and use Azure SKU pricing to compare any Standard_D2s_v3 deployments with the same SKU in westeurope. Keep consumption types and billing units separate in the review.
- Use Azure SKU pricing to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Azure SKU pricing and tell me what changed since last week.
- Check Azure SKU pricing and summarize what you find in three bullet points.

## How to set up Azure SKU pricing in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Azure SKU pricing**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "prices-azure-com/products/get_sku_prices",
    "input": {
      "arm_sku_name": "<arm_sku_name>",
      "arm_region_name": "<arm_region_name>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Azure SKU pricing on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Azure SKU pricing tools and prices

- [Azure Retail Prices · Get sku prices](https://spiral.ai/tools/alexandria/prices-azure-com/products/get_sku_prices) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| price_type | Consumption, DevTestConsumption, Reservation | — | Restrict to one price type; omit for all. |
| currency_code |  | USD | Billing currency, ISO 4217. Default USD. Pattern: ^[A-Z]{3}$. |
| include_savings_plan |  | — | Request api-version 2023-01-01-preview to get `savings_plan` on eligible rows. |

## What can you do with Azure SKU pricing in opencode?

Add an Azure retail baseline to an infrastructure review using the SKUs and regions in the project's deployment files. The agent can attach meter names, billing units, tier thresholds, and effective dates to make each estimate reviewable.

### Build a regional budget baseline

Collect retail records for a planned Azure deployment in East US and West Europe. Compare matching products, billing units, and consumption tiers, using discovered SKU names or saved meter IDs to narrow the review.

### Explain a billing meter

Turn a meter ID into a readable explanation of its Azure product, SKU, region, and usage unit. Use that explanation to review a cost export against a public retail baseline.

### Check an estimate's billing units

Review the Azure rate records behind an estimate and identify calculations that mix hourly units with other usage measures or overlook a consumption threshold.

### Watch a deployment's retail baseline

Save repeated observations of the Azure SKUs or meters used in a deployment. Report changes in returned rates, units, and effective dates against the previous saved observation.

### Document an architecture decision

Attach the exact Azure product, SKU, meter, region, billing unit, and effective date to a retail comparison. This makes the assumptions behind a resource choice reviewable.

### Separate Spot records from standard VM records

Inspect Azure virtual machine results for Spot in the meter and SKU names. Keep those records separate when comparing resource choices for an interruptible batch workload.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Azure SKU pricing in other agents

- [Amp](https://spiral.ai/integrations/amp/azure-sku-pricing)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/azure-sku-pricing)
- [Claude](https://spiral.ai/integrations/claude-desktop/azure-sku-pricing)
- [Claude Code](https://spiral.ai/integrations/claude-code/azure-sku-pricing)
- [Cline](https://spiral.ai/integrations/cline/azure-sku-pricing)
- [Codex](https://spiral.ai/integrations/codex/azure-sku-pricing)
- [Cursor](https://spiral.ai/integrations/cursor/azure-sku-pricing)
- [Devin](https://spiral.ai/integrations/devin/azure-sku-pricing)
- [dots](https://spiral.ai/integrations/dots/azure-sku-pricing)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/azure-sku-pricing)
- [Gemini](https://spiral.ai/integrations/gemini/azure-sku-pricing)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/azure-sku-pricing)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/azure-sku-pricing)
- [goose](https://spiral.ai/integrations/goose/azure-sku-pricing)
- [Grok](https://spiral.ai/integrations/grok/azure-sku-pricing)
- [Grok Build](https://spiral.ai/integrations/grok-build/azure-sku-pricing)
- [Hermes](https://spiral.ai/integrations/hermes/azure-sku-pricing)
- [Instinct](https://spiral.ai/integrations/instinct/azure-sku-pricing)
- [Manus](https://spiral.ai/integrations/manus/azure-sku-pricing)
- [Muse](https://spiral.ai/integrations/muse/azure-sku-pricing)
- [Muse Code](https://spiral.ai/integrations/muse-code/azure-sku-pricing)
- [n8n](https://spiral.ai/integrations/n8n/azure-sku-pricing)
- [Notion](https://spiral.ai/integrations/notion/azure-sku-pricing)
- [OpenClaw](https://spiral.ai/integrations/openclaw/azure-sku-pricing)
- [Perplexity](https://spiral.ai/integrations/perplexity/azure-sku-pricing)
- [Raycast](https://spiral.ai/integrations/raycast/azure-sku-pricing)
- [VS Code](https://spiral.ai/integrations/vscode/azure-sku-pricing)
- [Windsurf](https://spiral.ai/integrations/windsurf/azure-sku-pricing)
- [Zapier](https://spiral.ai/integrations/zapier/azure-sku-pricing)

## More opencode guides

- [Azerty product search](https://spiral.ai/integrations/opencode/azerty-product-search)
- [Azure meter pricing](https://spiral.ai/integrations/opencode/azure-meter-pricing)
- [Azerty product details](https://spiral.ai/integrations/opencode/azerty-product-details)
- [Azure retail price search](https://spiral.ai/integrations/opencode/azure-retail-price-search)
- [Autotrader vehicle specifications](https://spiral.ai/integrations/opencode/autotrader-vehicle-specifications)
- [Best Buy customer reviews](https://spiral.ai/integrations/opencode/best-buy-customer-reviews)

## Questions about Azure SKU pricing in opencode

**Can opencode use Azure SKU pricing?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Azure SKU pricing like any built-in tool.

**How much does Azure SKU pricing cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use Azure SKU pricing in opencode?**

No. Spiral runs Azure SKU pricing on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Azure SKU pricing in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Azure SKU pricing runs?**

Azure SKU pricing runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does this catalog include Azure Government and Azure China?**

Microsoft limits this Retail Prices API to Azure Commercial Cloud. Do not use its regional records as evidence of rates in Azure Government or Azure China.

**Are these the rates my organization actually pays?**

These are public retail rates. Microsoft identifies the Price Sheet API as the source for negotiated Enterprise customer pricing.

**Can one source response contain every matching record?**

Microsoft caps an upstream response at 1,000 records and supplies a next-page link. A broad catalog comparison can therefore require multiple source pages.

**What does the effective date tell me about freshness?**

The optional effective start date tells you when that rate takes effect. It is not a timestamp for the catalog's latest refresh.

**Why might a converted rate disagree with my invoice?**

Microsoft says the API's currency conversions produce estimates using the current conversion rate. Those results can differ from the conversion used for your invoice.

