The CLI runs each lookup as one command, and enriches or checks a CSV file with one command. Output is JSON when you pipe it on, and a readable table in the terminal. Coding agents such as Claude Code should prefer the CLI over MCP when there is a file to process.

Commands and flags are Norwegian. The comments below explain them.

Install

curl -o /usr/local/bin/firmasett https://firmasett.no/last-ned/firmasett && chmod +x /usr/local/bin/firmasett
curl -o /usr/local/bin/mcp_server.py https://firmasett.no/last-ned/mcp_server.py
curl -o /usr/local/bin/mcp_felles.py https://firmasett.no/last-ned/mcp_felles.py

Three files, Python 3 only. The last two are the HTTP client the CLI shares with the MCP server.

Setup

Get a key. The console gives you an fs_ key, or an agent can create one with POST https://firmasett.no/v1/registrer (see For AI agents).

Put it in the environment. export FIRMASETT_NOKKEL=fs_… (or --api-key fs_… per command). Scripts, CI and agents use the environment variable.

Check. firmasett konto shows plan, quota and phone credits. Free.

Commands

firmasett konto                       account: plan, quotas and usage (free)
firmasett bruk                        usage per day, last 30 days (free)
firmasett sok "regnskap" --fylke Rogaland --har-dl-epost ja --antall 20      search companies
firmasett sok --bransje 69.2 --antall-kun ja              count only, free
firmasett sok --bransje 69.2 --alle --ut byraaer.csv     all hits to CSV
firmasett berik 810034882 [more orgnr …]                  enrich companies
firmasett personer "Nordmann" --fylke Oslo                search managing directors
firmasett person --orgnr 810034882                        enrich the managing director
firmasett mobil --orgnr 810034882                         mobile number, 1 phone credit
firmasett epost finn --fornavn Kari --etternavn Nordmann --domene firma.no   find e-mail
firmasett epost valider [email protected] [email protected]        validate e-mail
firmasett epost omvendt [email protected]                     reverse e-mail lookup
firmasett sjekk kunder.csv --ut sjekket.csv               check your own contacts against Firmasett
firmasett berik-fil liste.csv --kolonne orgnr --ut beriket.csv    enrich a file
firmasett bransjer                                        industry codes
firmasett skill install [name …]                          skills to ~/.claude/skills

All search filters exist as flags: --bransje --fylke --kommune --kundetype --ansatte-min/-maks --omsetning-min/-maks --stiftet-min/-maks --utestaende-min --kunder-min --fakturaer-min --kan-sms --har-dl-mobil --har-dl-epost --har-dl-linkedin --har-nettside --fakturerer-mange --kjede --konsern --signal --regnskapsforer --revisor --sorter --antall --side. They mean, in order: industry, county, municipality, customer type, employees, revenue, year founded, estimated receivables, estimated customers, estimated invoices, can receive SMS, managing director has mobile / e-mail / LinkedIn, has website, invoices many, chain, group, website signal, accountant, auditor, sort, hits per page, page.

File flow: dry run, try, run

firmasett sjekk kunder.csv --torrkjoring          # dry run: finds the columns, counts rows, shows quota. No calls.
firmasett sjekk kunder.csv --grense 10            # ten rows, to see that the result looks right
firmasett sjekk kunder.csv --ut sjekket.csv       # the whole file

What happens along the way:

  • Columns are found automatically. orgnr, firma, domene, navn, epost, telefon are recognised from common Norwegian and English headers. --kolonne overrides the orgnr column.
  • Batches of 100. One API call per hundred rows.
  • All columns are kept. The output file has the original columns plus new ones with an fs_ prefix: for sjekk these are fs_treff (match), fs_epost_status, fs_beste_epost (best e-mail), fs_beste_epost_grad, fs_telefon_status, fs_har_mobil; for berik-fil accounts, industry, managing director with e-mail and grade, and invoicing signals.
  • Progress is saved after every batch. Run the same command again to continue. --omstart starts over.
  • Quota. Before each batch the CLI knows what is left (from meta). If the window runs out, it waits ten minutes at a time, or stops with code 3 if you pass --ikke-vent (do not wait).
  • Exit codes: 0 ok, 1 wrong usage, 2 error from the service, 3 quota used up. Safe in cron and CI.

Example: from search to call list

firmasett sok --bransje 86.23 --fylke "Trøndelag" --ansatte-min 5 --har-dl-epost ja --alle --ut tannleger.csv
firmasett berik-fil tannleger.csv --ut tannleger-beriket.csv

The first command fetches all hits (search hits); the example is dental practices in Trøndelag with at least five employees. The second enriches each orgnr (enrichments) and adds accounts, managing director with e-mail and grade, and invoicing signals. Mobile numbers you fetch deliberately afterwards with firmasett mobil --orgnr …, one phone credit each.

Skill for coding agents

firmasett skill install

puts all the skills from the library (in Norwegian) in ~/.claude/skills/firmasett-*/SKILL.md. Claude Code then learns when the CLI is better than MCP, to do a dry run first, to read the fs_* columns, and what the grades mean. --dir chooses another folder.

Common questions

Can I use another column for e-mail? Give the file a header called epost, email or mail. Other headers you can rename in the spreadsheet.

Can I send landline numbers? Yes. Numbers are normalised (country code and spaces removed) before they are compared.

Is my file stored? No. The rows are sent to /v1/sjekk and /v1/selskaper/berik and processed as described in § 6 of the terms (in Norwegian): contact values you submit can be used to confirm and improve the dataset.

/ 09 · Get started

1 000 enrichments free. No card.

Create a key, connect your agent and ask the first question in under a minute.