[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [USITC HTS tariff line](https://spiral.ai/integrations/opencode/usitc-hts-tariff-line)

# How to Use USITC HTS tariff line in opencode

Fetch one HTS entry with its article description, reporting units, and duty-rate columns. Use it to inspect a known classification number or check a candidate found through product search.

|  |  |
| --- | --- |
| Model | USITC HTS tariff line |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with USITC HTS tariff line in opencode

- Use USITC HTS tariff line to retrieve 8541.43.00.10 and add its description, units, and duty-rate columns to a JSON fixture in this project.
- Use USITC HTS tariff line to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from USITC HTS tariff line and tell me what changed since last week.
- Check USITC HTS tariff line and summarize what you find in three bullet points.
- Pull the newest data from USITC HTS tariff line and give me the result as a table.

## How to set up USITC HTS tariff line 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 USITC HTS tariff line**: 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": "hts-usitc-gov/tariff-schedule/records_get",
    "input": {
      "htsno": "<htsno>"
    }
  }'
```

Then paste one of the prompts above: opencode finds USITC HTS tariff line on Spiral, shows the price and runs it.

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

## USITC HTS tariff line tools and prices

- [USITC Harmonized Tariff Schedule (HTSUS) · Records get](https://spiral.ai/tools/alexandria/hts-usitc-gov/tariff-schedule/records_get) (Alexandria): $0.00873 per call.

## What can you do with USITC HTS tariff line in opencode?

Build a tariff reference in your project with USITC descriptions, quantity units, and duty-rate columns. Add revision checks so the project can identify when its saved HTS data needs refreshing.

### Review an electronics import catalog

Search descriptions for connectors and power supplies, inspect candidate tariff lines, and compare surrounding chapter entries. Check the revision before refreshing the catalog's classification references.

### Prepare a solar procurement review

Find photovoltaic descriptions, retrieve candidate entries, and compare related classifications in the chapter records. Attach the current revision identity to the procurement brief.

### Build a textile classification brief

Search for cotton shirts, inspect the descriptions and units of candidate entries, and compare chapter alternatives. Identify the revision used in the brief sent for classification review.

### Refresh product classification references

Check for a new revision, reload relevant chapters, and look up saved tariff numbers. Search product descriptions for replacement candidates when a saved number no longer appears.

### Resolve product-name mismatches

Search technical descriptions such as static converters for telecommunication devices, then inspect candidate tariff lines. Give purchasing staff the schedule wording alongside their everyday product names.

## Overview

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

## USITC HTS tariff line in other agents

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

## More opencode guides

- [USITC HTS revision status](https://spiral.ai/integrations/opencode/usitc-hts-revision-status)
- [World Bank country directory](https://spiral.ai/integrations/opencode/world-bank-country-directory)
- [USITC HTS product search](https://spiral.ai/integrations/opencode/usitc-hts-product-search)
- [World Bank country profile](https://spiral.ai/integrations/opencode/world-bank-country-profile)
- [USITC HTS chapter records](https://spiral.ai/integrations/opencode/usitc-hts-chapter-records)
- [World Bank database dimensions](https://spiral.ai/integrations/opencode/world-bank-database-dimensions)

## Questions about USITC HTS tariff line in opencode

**Can opencode use USITC HTS tariff line?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run USITC HTS tariff line like any built-in tool.

**How much does USITC HTS tariff line 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 USITC HTS tariff line in opencode?**

No. Spiral runs USITC HTS tariff line on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up USITC HTS tariff line in opencode?**

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

**Does opencode wait while USITC HTS tariff line runs?**

USITC HTS tariff line runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which country's tariffs does the HTS cover?**

It covers merchandise imported into the United States, with tariff rates and statistical classifications. Its coverage is U.S. imports.

**How often does the schedule change?**

USITC revises the online HTS throughout the year as modifications occur. Revision status identifies the current edition and its dates so you can check whether a saved reference needs updating.

**Can I retrieve the tariff schedule for an earlier shipment?**

These endpoints serve the current revision only. USITC's separate archive provides historical editions beginning in 1989.

**Why might a familiar product name return no matches?**

HTS descriptions can use technical wording. USITC says phone chargers are listed as static converters for telecommunication devices, so searching only for the everyday name can miss them.

**Does keyword search return every matching tariff entry?**

USITC's guide documents a limit of the first 100 matches for its underlying REST search. Use narrower product terms or chapter records when you need broader coverage.

