[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [HLR Lookup phone carrier](https://spiral.ai/integrations/opencode/hlr-lookup-phone-carrier)

# How to Use HLR Lookup phone carrier in opencode

Returns available original and current carrier details, mobile network codes, and whether a number has been ported. Use it to update business phone routing or check carrier changes without checking whether the line is live.

|  |  |
| --- | --- |
| Model | HLR Lookup phone carrier |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | Up to $0.0034918 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with HLR Lookup phone carrier in opencode

- Use HLR Lookup phone carrier for Ride'LUX's published support number +447780279906 and add the returned original carrier, current carrier, and porting result to a sample report in this project.
- Use HLR Lookup phone carrier for HLR Lookup's office number +441133910781 and inspect how our parser handles unavailable mobile network codes.
- Use HLR Lookup phone carrier for +447780279906 and +441133910781, then create a comparison table in the project showing available original and current carrier details.
- Use HLR Lookup phone carrier to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from HLR Lookup phone carrier and tell me what changed since last week.

## How to set up HLR Lookup phone carrier 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 HLR Lookup phone carrier**: 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": "hlrlookup/people/phone-network",
    "input": {
      "telephone_number": "<telephone_number>"
    }
  }'
```

Then paste one of the prompts above: opencode finds HLR Lookup phone carrier on Spiral, shows the price and runs it.

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

## HLR Lookup phone carrier tools and prices

- [HLR Lookup · Phone network](https://spiral.ai/tools/alexandria/hlrlookup/people/phone-network) (Alexandria): Up to $0.0034918 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| input_format |  | — | ISO3 country code when telephone_number is national, such as USA or GBR. Without it a national number can be read as another country's and is still charged. |
| output_format |  | — | Format of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code. |

## What can you do with HLR Lookup phone carrier in opencode?

Build a carrier audit for your project's business phone directory using HLR Lookup's current network and porting results. Add connectivity outcomes where available so the report distinguishes carrier information from a live status check.

### Update business phone routing

Use the returned current carrier and mobile network codes to review routing rules for published business numbers. A live status check can add connectivity context when investigating a route.

### Review carrier changes

Compare original and current networks for public business lines. Flag ported numbers whose stored carrier information needs review.

### Audit a business phone directory

Compare available carrier, country, and porting results with an existing directory of business contact numbers. Produce a list of records with conflicting network information.

### Investigate failed business communications

Check the carrier currently serving a published business number when calls or messages fail. Where live status is available, include the connectivity result in the incident report.

### Summarize business carrier coverage

Group published supplier or branch phone numbers by the carriers returned. Show which records lack carrier information before reviewing network-dependent routing.

### Review a business carrier migration

Compare returned carrier and porting information with the expected network after a company changes its phone service. Send discrepancies for manual review.

## Overview

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

## HLR Lookup phone carrier in other agents

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

## More opencode guides

- [HLR Lookup mobile number status](https://spiral.ai/integrations/opencode/hlr-lookup-mobile-number-status)
- [Hunter company email search](https://spiral.ai/integrations/opencode/hunter-company-email-search)
- [Greenhouse offices](https://spiral.ai/integrations/opencode/greenhouse-offices)
- [Hunter company profile](https://spiral.ai/integrations/opencode/hunter-company-profile)
- [Greenhouse job search](https://spiral.ai/integrations/opencode/greenhouse-job-search)
- [Hunter email verification results](https://spiral.ai/integrations/opencode/hunter-email-verification-results)

## Questions about HLR Lookup phone carrier in opencode

**Can opencode use HLR Lookup phone carrier?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run HLR Lookup phone carrier like any built-in tool.

**How much does HLR Lookup phone carrier cost in opencode?**

Up to $0.0034918 per run. 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 HLR Lookup phone carrier in opencode?**

No. Spiral runs HLR Lookup phone carrier on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up HLR Lookup phone carrier in opencode?**

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

**Does opencode wait while HLR Lookup phone carrier runs?**

HLR Lookup phone carrier runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does HLR Lookup cover every mobile network?**

Coverage varies by country and operator, and the coverage list changes regularly. Some operators supply carrier codes and porting information without sharing live status.

**How fresh are HLR Lookup results?**

Network checks run at request time, but optional cached results can be up to 30 days old. The returned timestamp retains the original check time when a result comes from cache.

**How many numbers can the source process in one request?**

HLR Lookup's JSON API accepts up to 80 numbers per request. More than 80 produces a BAD_REQUEST error.

**Can HLR Lookup locate a phone?**

No. HLR Lookup explicitly says it does not provide any number's location; its service returns phone status and network information.

**Can I base a business decision entirely on a lookup?**

HLR Lookup's terms say its services are not intended to be the sole basis for a business decision. A returned carrier or connectivity result should therefore support your assessment rather than determine it alone.

