# OAuth sign-in for assistants

> OAuth sign-in lets you connect an AI assistant to the SimilarIQ MCP server without pasting an API key. The assistant sends you to a SimilarIQ sign-in and consent screen, you approve, and it receives tokens of its own. The flow is OAuth 2.1 with PKCE, rotating refresh tokens and audience-bound tokens, and you can disconnect any assistant from your account page.

Source: https://similariq.ai/features/oauth-for-assistants · Updated 2026-11-25

## What OAuth sign-in is and the problem it solves

An AI assistant that searches for look-alike companies on your behalf has to prove to SimilarIQ that it is acting for your account. There are two ways to do that. One is a static API key that you copy from the app and paste into the assistant's settings. The other is OAuth, where you sign in through a browser and approve the connection.

Pasting a key works, but it has costs. The secret now lives inside a third-party product's configuration. Non-technical teammates have to handle a credential they do not understand. And a single key shared by several tools cannot be cut off for one of them without breaking the rest.

OAuth removes the paste. The assistant never sees your key or your password. It gets its own tokens, issued for that connection, and you can end the connection from your SimilarIQ account page whenever you like. For chat assistants used by people who are not developers, it is the simpler and tidier path.

## How it works: the flow and its safeguards

SimilarIQ hosts its MCP server at `https://similariq.ai/mcp`. It is a remote server using streamable HTTP, and it is stateless. There is nothing to install and no local process to run. When an OAuth-capable assistant is pointed at that address, it sends you to a SimilarIQ sign-in and consent screen.

You sign in the way you normally do, with Google, Microsoft or an email magic link, and approve the connection. The assistant then holds tokens that let it call the server's tools for your account. The flow follows OAuth 2.1 and uses three named safeguards.

The exact wording of the consent screen, the lifetime of the tokens and whether access can be narrowed to particular tools are not published, so this page does not state them. The practical summary is that a connected assistant can use the MCP tools on your account until you disconnect it.

- **PKCE**: the sign-in is bound to the client that started it, so an intercepted authorization code is of no use to anyone else
- **Rotating refresh tokens**: the long-lived token is replaced each time it is used, which limits the value of a stolen copy
- **Audience-bound tokens**: tokens are issued for the SimilarIQ MCP server specifically and are not meant to be accepted elsewhere

## A worked example

A marketing lead wants her chat assistant to research competitors. She adds a remote MCP server in the assistant's settings and enters `https://similariq.ai/mcp`. No key is involved. The assistant opens a browser window on the SimilarIQ sign-in screen. She signs in with her work Google account and approves the consent screen.

Back in the chat, the assistant now lists ten SimilarIQ tools. She asks for companies similar to one of her customers. The assistant calls `find_similar_companies`, which costs one credit, $0.25, and after roughly 30 to 60 seconds it has up to 100 ranked look-alikes to work with. When she asks follow-up questions about the same list, it uses `get_search_results`, which is free.

Three months later she moves to a different assistant. She connects the new one the same way, then opens her SimilarIQ account page and disconnects the old one. Nothing else changes. The team's API keys, used by a nightly script, were never part of this and keep working.

## Connecting from the assistant and managing it in the app

The connection always starts in the assistant, not in SimilarIQ. Look for the place where the assistant lets you add a remote MCP server or connector, and give it the server address. Menu names differ between products and change over time, so follow the assistant's own documentation. SimilarIQ states that the server works with Claude, ChatGPT, Grok, Perplexity, Claude Code, Cursor and any MCP client.

The SimilarIQ side has two screens. The first is the sign-in and consent screen you see during connection. The second is your account page, where connected assistants can be disconnected. Make a habit of reviewing that list when someone changes tools or leaves a project.

You can try this before paying. Signing up gives 2 free searches with no credit card, which is enough to connect an assistant and run a real search through it. The [MCP server](https://similariq.ai/features/mcp-server) page describes the tools in detail, and the guide on [adding an MCP server to an AI assistant](https://similariq.ai/guides/how-to-add-an-mcp-server-to-an-ai-assistant) walks through the general steps.

## Configuration for developer tools and clients

For clients configured with a JSON file, the generic entry is `{"mcpServers":{"similariq":{"type":"http","url":"https://similariq.ai/mcp"}}}`. Note what is missing: there is no `headers` block and no key. A client that supports OAuth will start the sign-in flow when it first connects.

In Claude Code the command is `claude mcp add --transport http similariq https://similariq.ai/mcp`. Whether a given client starts OAuth on its own, and what its sign-in prompt looks like, depends on the client; check its documentation.

OAuth here is an MCP feature. The REST API, the SDKs and the CLI authenticate with an `sk-live-` key in a header, not with an OAuth sign-in. If your client can only send a static header, add `"headers":{"X-API-Key":"sk-live-..."}` to the entry instead. The [API keys](https://similariq.ai/features/api-keys) page covers that route.

## What it costs

Connecting is free, and so is staying connected. An assistant signed in through OAuth draws on the same pay-as-you-go balance as the app and the API, at the same price: $0.0025 per look-alike, 100 per search, $0.25 per search. There is no separate plan for assistants and no per-connection fee.

Of the ten tools, two spend credits. `find_similar_companies` costs one credit, and `start_bulk_search` costs one credit per domain. The other eight are free: `get_bulk_job`, `list_recent_searches`, `get_search_results`, `list_my_companies`, `save_company`, `list_saved_companies`, `create_share_link` and `get_search_balance`.

So an assistant that runs 20 searches in a month costs $5.00, however many times it re-reads those results. If a search fails, the credit is refunded automatically.

## Pitfalls to avoid

The first pitfall is forgetting that consent is a spending decision. An assistant you approve can call the two paid tools without asking you each time, unless the assistant itself prompts for confirmation. Set a monthly cap before you connect anything that acts on its own, and tell the assistant to call `get_search_balance` before it searches.

The second is approving the wrong account. If you belong to more than one SimilarIQ account or sign in with more than one identity, check which one is signed in before you approve. Searches will be charged to that balance and will appear in that history.

The third is leaving connections behind. A disconnected laptop or an abandoned trial of an assistant still holds a working connection until you remove it. Disconnect from the account page. Finally, do not mix methods without reason: if a client is connected through OAuth, it does not also need a key in its headers.

## Pairing OAuth with other features

OAuth pairs first with [spend controls](https://similariq.ai/features/spend-controls). Optional auto-refill keeps an assistant from stalling when the balance runs low, and the monthly cap you set is a hard ceiling on what your card can be charged. Together they make it reasonable to let an assistant search without supervising every call.

It also pairs with the team model. Unlimited team members share one balance with no per-seat fee, so each person can connect their own assistant under their own sign-in. And it pairs with the free read tools: an assistant can list recent searches, re-open results and create a share link for a colleague without spending anything.

## When OAuth is not the right tool

OAuth needs a person and a browser at connection time. A server-side job, a CI pipeline or a scheduled agent with nobody present is better served by an API key stored as a secret. Use a key for those, and keep OAuth for assistants that a person sets up and uses interactively.

It is also not available where the client cannot do it. Some MCP clients only accept a static header, and for those the key header is the supported route. And if you are not using an assistant at all, the [REST API](https://similariq.ai/features/rest-api), SDKs and CLI are more direct.

Last, OAuth is not a permissions system for your team. The published facts do not describe per-tool scopes or per-user limits on what a connected assistant can do. If you need that kind of control, manage it with the cap, the balance and who you allow to connect.

## Frequently asked questions

### Do I need an API key to connect an AI assistant to SimilarIQ?

Not if the assistant supports OAuth. Point it at `https://similariq.ai/mcp`, sign in on the SimilarIQ screen and approve the connection. A key is only needed for clients that can send nothing but a static header.

### Which assistants work with the SimilarIQ MCP server?

SimilarIQ states that it works with Claude, ChatGPT, Grok, Perplexity, Claude Code, Cursor and any MCP client. How each one adds a remote server differs, so follow that product's own documentation.

### How do I disconnect an assistant?

Open your SimilarIQ account page and disconnect it there. You can remove any connected assistant without affecting your API keys, balance or search history.

### Does the assistant see my password or API key?

No. With OAuth you sign in on SimilarIQ's own screen and the assistant receives tokens issued for that connection. Your sign-in credentials and any `sk-live-` keys are not shared with it.

### Is connecting through OAuth more expensive than using a key?

No. Both methods draw on the same balance at the same price, $0.25 per search. Eight of the ten MCP tools are free to call under either method.

### How long do the OAuth tokens last?

Token lifetimes are not published. SimilarIQ states that refresh tokens rotate and that tokens are audience-bound. If a connection stops working, reconnect from the assistant and sign in again.

### Can I use OAuth with the REST API or the CLI?

The published facts describe OAuth for the MCP server only. The REST API, SDKs and CLI authenticate with an `sk-live-` key sent in the `X-API-Key` header or as a bearer token.
