Spiral gives your agent every tool with one account. Browse the tools →

opencode · Finance

How to Use AWS pricing region coverage in opencode

Lists regional price files for an AWS service or Savings Plan. Use it to establish the catalog's geographic coverage before collecting product rows or comparing locations.

Prompts to try with AWS pricing region coverage in opencode

Copy an example into opencode, or ask in your own words.

Use AWS pricing region coverage for AmazonRDS and add the returned regional file references to this project's catalog inventory.

AWS pricing region coverageopencode
Try asking
  • Use AWS pricing region coverage to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from AWS pricing region coverage and tell me what changed since last week.

  • Check AWS pricing region coverage and summarize what you find in three bullet points.

  • Pull the newest data from AWS pricing region coverage and give me the result as a table.

How to set up AWS pricing region coverage 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run AWS pricing region coverage

    One request; the result comes back by polling or a webhook.

    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": "pricing-us-east-1-amazonaws-com/cloud-pricing/regions_list",
        "input": {
          "offer_code": "<offer_code>"
        }
      }'

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

AWS pricing region coverage providers and prices

Spiral runs AWS pricing region coverage through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
AWS Price List Bulk API · Regions list
pricing-us-east-1-amazonaws-com/cloud-pricing/regions_list

What can you do with AWS pricing region coverage in opencode?

Build a traceable AWS catalog import for your project's estimator. A coding agent can work through service discovery, regional coverage, publication history, file metadata, and product rows to make the import reflect AWS's published catalog.

Build an AWS catalog for an internal estimator

Discover published services, inventory their regional files and available versions, inspect source layouts, and import product rows. Keep the catalog publication alongside the estimator's assumptions.

Prepare a weekly AWS catalog change digest

Compare service discovery results, regional coverage, publication history, source metadata, and collected rows with the previous run. Report catalog additions and changed product terms separately.

Create a planning baseline for a cloud migration

Identify the AWS services under consideration, map their published regional coverage, and collect relevant product terms. Include publication history and source metadata so reviewers can identify the catalog used for the plan.

Document the inputs to a procurement review

Assemble the service identifiers, regional file references, publication history, source layout, and product rows behind an AWS catalog comparison. Give reviewers enough evidence to trace each comparison to its source publication.

Check regional catalog coverage

Find Amazon RDS in the published service catalog and list its regional price file references. Use that inventory to decide which locations a catalog comparison can include.

Questions about AWS pricing region coverage in opencode

Can opencode use AWS pricing region coverage?

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

How much does AWS pricing region coverage 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 AWS pricing region coverage in opencode?

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

How long does it take to set up AWS pricing region coverage in opencode?

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

Does opencode wait while AWS pricing region coverage runs?

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

How often does AWS update the catalog?

Price list files can change at any time. AWS sends a notification when it updates a file, so a daily check can span multiple publications.

How far back does the publication history go?

The service version index lists the historical publications available for that service, with effective start and end dates. Check the returned versions to establish the periods represented for Amazon EC2, Amazon S3, or another service.

Is the catalog limited to US East?

AWS publishes regional indexes that link to pricing for the specified service, period, and region. Use the service's regional index to establish coverage rather than treating the pricing host's location as the coverage boundary.

Does one product row describe every usage tier?

AWS price dimensions include pricing tier limits and usage measurement. A tiered service therefore needs its applicable dimensions considered together when interpreting catalog rates.

What identifies the currently active historical version?

In an AWS service version index, a version without an effective end date is the currently active version. The effective period is separate from the index's publication timestamp.

Get started

Start using AWS pricing region coverage in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options