# FreeAgent for AI agents. Make the right invoice easier to review.

> Read accessible invoices and related records in FreeAgent. Prepare a source-grounded billing review briefing within the selected account.

- Page: https://www.agent200.com/connectors/freeagent/
- Category: CRM and sales
- Authentication: Managed OAuth
- Identifier in code: `freeagent`
- Create an API key: https://agent200.com/platform/apikeys/
- Updated: 2026-11-18

## Instructions for AI agents

Connector: FreeAgent, through Agent200. In code: "freeagent".
What it does: Read accessible invoices and related records in FreeAgent. Prepare a source-grounded billing review briefing within the selected account.
Page: https://www.agent200.com/connectors/freeagent/

1. Get an Agent200 API key. If the developer has none, send them to https://agent200.com/platform/apikeys/ and ask them to choose "Create an API key". Read the key from the AGENT200_API_KEY environment variable. Never ask for it in chat, and never write it into code, prompts or logs.
2. Sign-in is managed OAuth. Each end user approves access once, on FreeAgent's own page, through the authorization link Agent200 returns. Never ask a user for a FreeAgent password or token in chat.
3. Give every request a stable id for the end user. Agent200 uses only that user's own connection.
4. Read tools: freeagent_list_invoices, freeagent_get_invoice, freeagent_list_contacts, freeagent_get_contact, freeagent_list_expenses. Name "freeagent" in the tools of a request; the model decides which tool to call.
5. Stay within the project's settings. If a tool is turned off or a call is refused, tell the user. Do not work around it.
6. Before a write, confirm with the user, unless they asked for that exact change.
7. For setup with a specific framework, follow its guide:
   https://www.agent200.com/connectors/freeagent/framework/claude/
   https://www.agent200.com/connectors/freeagent/framework/chatgpt/
   https://www.agent200.com/connectors/freeagent/framework/claude-code/
   https://www.agent200.com/connectors/freeagent/framework/muse/
   https://www.agent200.com/connectors/freeagent/framework/grok-bot/
   https://www.agent200.com/connectors/freeagent/framework/openai-dots/
   https://www.agent200.com/connectors/freeagent/framework/claude-duet/
   https://www.agent200.com/connectors/freeagent/framework/hermes-agent/
   https://www.agent200.com/connectors/freeagent/framework/openclaw/

The code on the connector page is a conceptual example of the SDK. SDK reference: https://docs.igpt.ai/

## About

With the FreeAgent connector, your agent reads accounting data in each user's own FreeAgent account. It can list and read invoices, list and read contacts, and list expenses, using only the tools your project allows.

FreeAgent is an online accounting service for small businesses and freelancers.

## FreeAgent tools

- **List invoices** (`freeagent_list_invoices`, read): Find invoices in the authorized FreeAgent account.
- **Read an invoice** (`freeagent_get_invoice`, read): Retrieve one invoice by its resource URL.
- **List contacts** (`freeagent_list_contacts`, read): Find available contact records.
- **Read a contact** (`freeagent_get_contact`, read): Retrieve one identified contact.
- **List expenses** (`freeagent_list_expenses`, read): Review recorded expenses in scope.

## Limits you can set

**Turn single tools on or off.** Let the agent read invoices and contacts, and switch off `freeagent_list_expenses` if it should not see expenses.

**Restrict what the agent reaches.** Choose the endpoints and scopes a project may use, for example invoices and contacts but not expenses. A call outside them is refused.

## Get started

### Step 1: Set up the SDK

Add the Agent200 SDK to the codebase you already have and authenticate with your API key. The key covers every connector enabled for the project.

File `agent.js`:

```js
// One Agent200 API key covers every connector enabled for the project.
const agent200 = new Agent200({
  apiKey: process.env.AGENT200_API_KEY,
});
```

(Conceptual example of the Agent200 SDK.)

### Step 2: Let your user connect FreeAgent

Each end user authorizes their own FreeAgent account once. Agent200 runs the OAuth flow, handles the callback, stores the tokens and refreshes them.

File `connect.js`:

```js
// Each end user authorizes their own FreeAgent account, once.
const connection = await agent200
  .user("user_123")
  .connect("freeagent");

if (connection.authorizationUrl) {
  // Show this link to your user; Agent200 handles the rest.
  console.log(connection.authorizationUrl);
}
```

(Conceptual example of the Agent200 SDK.)

### Step 3: Run with the FreeAgent tools

Name the user, the model and the tools. The model decides which FreeAgent tools to call, and Agent200 executes them with that user's connection.

File `run.js`:

```js
const result = await agent200
  .user("user_123")
  .run({
    model: "openai/gpt-5.6-sol",
    input: "Which FreeAgent invoices are still unpaid",
    tools: ["freeagent"],
  });

console.log(result.output);
```

(Conceptual example of the Agent200 SDK.)

## Sign-in and permissions

**Connect the intended account.** Use the documented FreeAgent authorization route. Confirm the organization, team or workspace before reading records.

**Match access to the request.** Use the authorized FreeAgent account through OAuth. Keep sandbox and production connections separate and verify account identity before reading billing data.

**Preserve the application user.** Keep the same stable application user identity for connection and later requests. Store the Agent200 key outside prompts and code.

## Example requests

- "Which FreeAgent invoices are still unpaid"
- "List the expenses from last month"
- "Show the contact details for Acme Ltd"

## Guides: FreeAgent with your AI framework

- [FreeAgent + Claude](https://www.agent200.com/connectors/freeagent/framework/claude.md): Read invoices with Claude and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.
- [FreeAgent + ChatGPT](https://www.agent200.com/connectors/freeagent/framework/chatgpt.md): Use ChatGPT to build a separate read-only FreeAgent assistant with Agent200. Ground the billing review briefing in returned source data.
- [FreeAgent + Claude Code](https://www.agent200.com/connectors/freeagent/framework/claude-code.md): Use Claude Code to build a separate read-only FreeAgent assistant with Agent200. Ground the billing review briefing in returned source data.
- [FreeAgent + Muse](https://www.agent200.com/connectors/freeagent/framework/muse.md): Read invoices with Muse and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.
- [FreeAgent + Grok Bot](https://www.agent200.com/connectors/freeagent/framework/grok-bot.md): Read invoices with Grok Bot and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.
- [FreeAgent + OpenAI Dots](https://www.agent200.com/connectors/freeagent/framework/openai-dots.md): Use OpenAI Dots to build a separate read-only FreeAgent assistant with Agent200. Ground the billing review briefing in returned source data.
- [FreeAgent + Claude Duet](https://www.agent200.com/connectors/freeagent/framework/claude-duet.md): Read invoices with Claude Duet and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.
- [FreeAgent + Hermes Agent](https://www.agent200.com/connectors/freeagent/framework/hermes-agent.md): Read invoices with Hermes Agent and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.
- [FreeAgent + OpenClaw](https://www.agent200.com/connectors/freeagent/framework/openclaw.md): Read invoices with OpenClaw and Agent200. Prepare a billing review briefing using the connected user’s own FreeAgent account.

## FAQ

### What access does FreeAgent need?

Use the authorized FreeAgent account through OAuth. Keep sandbox and production connections separate and verify account identity before reading billing data. [Provider documentation](https://dev.freeagent.com/docs/invoices).

### Does a list include every record?

Sandbox records are test data. Do not present a sandbox result as production revenue or an invoice status as a bank reconciliation.

### Can this workflow make changes?

The listed FreeAgent operations are read-only. A proposed change in the agent answer does not edit the source.

### How should I verify the answer?

Identify the selected invoice and compare the answer with invoice, contact, status and amount fields. Disclose missing or inaccessible fields.

### Are these exact runtime tool schemas?

The listed identifiers describe catalogue capabilities. Discover the actual runtime tool names and input schemas before executing a request.

## Related connectors

- [HubSpot](https://www.agent200.com/connectors/hubspot.md): Look up and update contacts, companies and deals in your users' HubSpot CRM.
- [Salesforce](https://www.agent200.com/connectors/salesforce.md): Query and update accounts, contacts and opportunities in Salesforce.
- [LinkedIn](https://www.agent200.com/connectors/linkedin.md): Share posts and read profile details on LinkedIn on behalf of each of your users, where the relevant API permissions are available.
- [Zendesk](https://www.agent200.com/connectors/zendesk.md): Search, read, create and update Zendesk tickets, and reply to customers, on behalf of each of your users.

---

Agent200: https://www.agent200.com/ · API keys: https://agent200.com/platform/apikeys/ · Docs: https://docs.igpt.ai/
