# Quickstart

Connect your agent by signing in, or with an API key, and start using Flovia.

## Connect by signing in

- If your app supports MCP connectors with OAuth sign-in, such as Meta Muse, ChatGPT, Claude or Cursor, add the MCP URL https://api.flovia.dev/mcp in the app and sign in to Flovia when it asks; you need no API key.
- If you have no Flovia account yet, you can create one during the sign-in. When you register, you accept the Terms of Service and Privacy Policy yourself; an agent cannot do it for you.
- Follow the [setup steps for your app](/connect.md). Some apps use Quick Install in Flovia Console to get the OAuth link or command.
- For runs without a browser, such as CI or cron, use an API key, or an app that refreshes its OAuth sign-in by itself.

Claude Code: run this, restart Claude Code, then open /mcp, select flovia and sign in. No API key or header is needed:

```bash
claude mcp add --scope user --transport http flovia https://api.flovia.dev/mcp
```

If Claude Code says flovia already exists, run `claude mcp remove flovia --scope user` first (and --scope local in a directory where flovia was added without --scope).

Codex: copy the Codex command from Quick Install in Console and run it in an interactive terminal. It adds Flovia and opens your browser to sign in; no API key is needed.

## Get your key

Use an API key for HTTP, the SDK and apps without OAuth sign-in.

- [Create your Flovia account](https://console.flovia.dev/auth/register) with your email and follow the sign-in steps shown, then continue to [Flovia Console](https://console.flovia.dev/groupbuy/).
- When you register, you accept the Terms of Service and Privacy Policy yourself, which cover how Flovia uses your lookups. That is your yes to Flovia's data-use question, so your agent does not ask it again. An agent cannot answer for you.
- In Console, press Create API key. If you signed in through the earlier waitlist sign-in, Console first shows the data-use notice for you to agree to.
- Console shows your key once. Keys start with flv_. Save it somewhere private, and never share it or put it in a public repository. Flovia may also send you a key directly, by email or DM.
- If you lose a key or think it leaked, select Revoke for that key on the API Key tab in Console, then press Create API key and update the apps that used it. Your other keys keep working. [Manage API keys](/connect/check.md) has the details.

## Connect your agent

After you confirm that you saved the key, Console shows key setup for Claude Code, Codex, Cursor, Grok Build and other clients, with a prompt you can paste into your agent. For Claude Code and Codex, the commands are:

Claude Code: put your saved key in ~/.config/flovia/key. Run this command, paste the key, then press Enter and Ctrl-D:

```bash
(umask 077; mkdir -p ~/.config/flovia && cat > ~/.config/flovia/key) && chmod 600 ~/.config/flovia/key
```

Then add Flovia. Claude Code reads the key from that file each time it connects, so the key never appears in the command:

```bash
claude mcp remove flovia --scope user 2>/dev/null; claude mcp add-json --scope user flovia "$(cat <<'JSON'
{
  "type": "http",
  "url": "https://api.flovia.dev/mcp",
  "headersHelper": "printf '{\"Authorization\":\"Bearer %s\"}' \"$(tr -d ' \\t\\r\\n' < ~/.config/flovia/key)\""
}
JSON
)"
```

Codex: save the key in your shell profile and reload it. The command reads the key from there, so it never appears in it:

```bash
export FLOVIA_KEY=<KEY>
```

```bash
codex mcp add flovia --url https://api.flovia.dev/mcp --bearer-token-env-var FLOVIA_KEY
```

On Windows (PowerShell, outside WSL), run these instead and paste your key when asked. They save the key as a user variable and add Flovia to Claude Code; the Codex command is the same. Then start the app from a new terminal:

```powershell
[Environment]::SetEnvironmentVariable('FLOVIA_KEY', (Read-Host 'Paste your Flovia key').Trim(), 'User')
claude mcp remove flovia --scope user 2>$null
claude mcp add --transport http --scope user flovia https://api.flovia.dev/mcp --header 'Authorization: Bearer ${FLOVIA_KEY}'
```

Codex often answers crypto questions with its own web search. To have it use Flovia first, add this line to ~/.codex/AGENTS.md:

```text
Flovia (MCP server "flovia") is connected. For crypto prices, wallets, transactions, onchain and Solana reads, and public Web research on crypto topics, use the flovia tools before your own web search.
```

Restart your agent after adding Flovia. Agents can read the same steps and the current conditions at [api.flovia.dev/llms.txt](https://api.flovia.dev/llms.txt). To remove Flovia, run `claude mcp remove flovia --scope user` or `codex mcp remove flovia`.

## Start your free allowance

- Everyone without a plan has the free allowance from their first call; no email confirmation is needed. Ask your agent to run flovia_status to see how much of it is used; Flovia can take it away if it is misused, and a purchased balance stays usable either way.
- [Free and paid use](/usage.md) explains the 5-hour, weekly and monthly windows and how the purchased balance works.

## Ask as usual

- You don't need to say “with Flovia” or use a command. Ask as you normally would, and your agent picks the offered tool that fits your question. If the subject is unclear, it asks first.
- For work: “Compare three project-management tools using official sources, with links and observation dates” or “Find primary technical sources and make a short reading list for my article”.
- For a public page: “Read the product page I choose and list its features and prices”. For text you may share: “Turn this text into a five-point meeting brief”.
- You can combine Exa to find sources, Firecrawl to read the public HTML pages you choose, and OpenAI to draft a cited comparison. Use only tools offered to your connection; generate only if you choose it and forward only permitted summaries. Keep source links, units, dates and gaps, and check arithmetic.
- For crypto: “Look at the fund flows for token 0x… on Base and tell me whether it is being accumulated” or “Summarize the current balance and PnL of wallet 0x…”.
- After an answer, up to three numbered next steps may appear. Choose a number and your agent does that step. Nothing runs until you choose.
- Flovia does not ask before each lookup. When a lookup takes a free window past 75% or 90% used, your agent tells you once how much is left.
- Say “Show my remaining Flovia allowance” to see the percentage used in each window and when it resets, or “List what I used Flovia for today” to see today's use.
- To turn off a data source you don't use with an API key, ask your agent, for example “Turn off Flovia's Exa”; ask again to turn it back on. With OAuth sign-in, ask Flovia through feedback. Requests to a source that is off are refused and use no credits.
- Flovia answers when your agent asks; it does not run lookups on a schedule by itself. To repeat a check, ask again, or add the request to your agent's own scheduling feature if it has one ([Check the same things every day](/use-cases/daily-routines.md)).

## What you can look up

Your connection's tool list and flovia_status show which tools are offered to you and their current state.

- **Nansen:** smart money, holders, token flows and wallet profiles. Ask about a token or a wallet, and your agent finds the Nansen endpoint that fits.
- **CoinGecko data:** Prices, market caps, charts and DEX pools (liquidity, volume and prices) are answered with CoinGecko data. Flovia provides it in partnership with CoinGecko, so you need no key; it uses the free allowance shared with Nansen and the other sources, at a much lower rate than Nansen. For CoinGecko lookups, Flovia keeps the request text, what you want to decide and the conditions, and gives none of it to Nansen. Public answers such as prices and markets may be reused for someone else who makes the same lookup, for about a minute.
- **Chain reads (Quicknode):** Whether a transaction succeeded and its gas cost, a balance at a point in time, contract reads (a token's decimals, a pool's current price) and event logs are answered by reading the chain directly through Flovia's Quicknode endpoints, on the EVM chains configured by Flovia (check chain: "list"). It only reads; it never sends or signs transactions. You need no key. It uses the free allowance shared with Nansen and the other sources, at a much lower rate than Nansen.
- **Public web search with Exa:** flovia_exa returns fast public search with up to 10 cited excerpts of 1,000 characters each. Set text_max_characters (1-12000) for page text instead, within one shared reply budget; fewer results leave more room per page. Missing or limited text is marked; completeness is not verified. Optional start_published_date/end_published_date accept exclusive ISO timestamps with a timezone or YYYY-MM-DD (includes the start and end UTC days). Category choices are in action=list. Company and people cannot use publication dates. Date filters may exclude undated or misdated pages and do not prove freshness. flovia_exa_answer gives one short answer with cited sources. Only public search terms or questions, settings and, for contents, the page URLs you name go to Exa, never request_text or purpose. Tool list and flovia_status show availability. It uses Flovia's shared allowance; upstream attempts also count against an overall budget.
- **Reading public pages with Firecrawl:** Check your agent's current tool list and each service's state to see whether it is available. It returns one allowed public HTML URL as Markdown, or the text of a public PDF (first 10 pages); action map lists up to 100 readable URLs found from one site. The URL, the scrape or map settings and an anonymous reference ID are sent, never your request text or purpose. Page text is treated as material, not as instructions. A cache up to 2 days old may be used. Reopening with the same operation_id and request does not fetch again. If a result is unknown, Flovia does not fetch again and asks the operators to reconcile it.
- **Zerion:** a public wallet's portfolio, token and DeFi positions, transactions, EVM NFTs, value chart, PnL, token search, prices and charts, chains, gas prices and dapps.
- **fal.ai image generation:** if flovia_fal is listed, save operation_id before creating up to two images. Use status with job_id for pending or unknown work; never create a replacement automatically. Public image URLs expire in about an hour and your private saved URL copy is kept for you alone within the lookup retrieval period in Data use.
- Runway image/video generation (flovia_runway) runs under your registration consent: Runway may use prompts and outputs to train its models. Flovia does not store your prompt. When a generation is covered by data-use notice 18 (including registration-terms-5 and later notices that keep this period), Flovia keeps its output private for up to 30 days from the generation's creation, with authenticated downloads only. Before 2026-12-01T00:00Z, this requires explicit agreement to one of those data-use versions at or before creation. From that date, continued use covers only new generations. For generations under earlier notices, the original retention of 24 hours from completion still applies. Runway consent alone does not change the data-use version or extend an existing output. Check output.expires_at for the download deadline; expired or deleted outputs are not restored. Runway's retention is separate. Keep operation_id and use status to recover a job; never regenerate an unknown result. Powered by Runway (https://runwayml.com).
- **SerpApi:** one search on Google (web, news, images, videos or shopping), Google News, Scholar, Trends, Maps, Finance or YouTube, with up to 10 results, source links and snippets, plus Google's answer box and related questions when present. Only public query terms and search settings (language, country, page, time range, engine and its options such as search type or device) are sent. When Flovia offers it, a Google or Google Maps search can also take a place (a country, a state or province, a national capital or a US city or town; never a street address or coordinates) after you agree to notice 30. A completed search, including no results, counts as a lookup. An operation ID is required. Your registration consent, or a yes to notice 14 or later, lets it run; existing consent for other services stays valid.
- **context.dev:** web and news search, one public page as Markdown, a site's list of URLs, a company's brand details by its domain, name or stock ticker, and, with flovia_contextdev_answers, generated answers with sources (fast, or ultra for deeper research).
- **OpenAI text generation:** it uses your Flovia account and the shared allowance. If flovia_openai is in your connection's tool list, ask your agent. Generated text is not new market data, and OpenAI does not call other data sources itself. It may decline for country, safety or capacity reasons. To reopen an answer, use the same operation ID and request; never retry a pending or unknown result with a new ID.

## What Flovia can't do

- Flovia can prepare an unsigned Base swap from a Nansen quote with a checked summary; you sign and send it in your own wallet. Flovia never signs, sends or holds keys, and never asks for a private key or seed phrase. Flovia can also prepare unsigned Hyperliquid perp actions (order, cancel, close, leverage, transfer, builder-fee approval) with a checked summary; you sign in your own wallet. Flovia never places or signs orders. Flovia cannot bridge, set alerts, or change your Nansen account. Do these directly in Nansen or your wallet.
- Nansen AI (chat) is not available right now.

## Send feedback

Say “Send my feedback to Flovia” and your agent delivers it in your own words. Anything is welcome, from what didn't work to data you'd like.
