Connect your agent to Frontline

Three ways in, all to the same CRM: the CLI, the MCP server and the REST API. Use the first one your agent supports.

Pick how your agent connects

All three reach the same CRM. Anything a person can do in the app, an agent can do here.

Can your agent run commands?

CLI

  • Claude Code
  • Codex
  • Cursor
Best for
Claude Code, Codex, Cursor and other coding agents
Sign-in
Personal API key, from Settings > Bring your own Agent
Covers
Objects, records, workflows, sequences, campaigns and more, plus 55 Claude Code skills

Does it connect to MCP servers?

MCP server

  • Claude
  • ChatGPT
  • Cursor

Add Frontline as an MCP server in your client, then approve with OAuth.

Best for
Chat apps and any other MCP client
Sign-in
OAuth. Access rules by workspace, team and user apply to every tool call.
Covers
200+ tools

Writing your own code?

REST API

  • Any language with HTTP
Best for
Your services, scripts and backends
Sign-in
Personal API key
Covers
Public API, 1,000 requests a minute per account

None of these? Send your user to sign up in the browser. No credit card needed.

Set up the CLI

For Claude Code, Codex, Cursor and any agent that runs shell commands. Every command prints JSON by default.

Install

Needs Node 18 or later. Adds two commands: frontline for the CRM and max for the personal agent.

Expect:frontline and max are on your PATH, and 55 skills are in ~/.claude/skills/.

Get an API key

Done once, in the browser.
A person does this:In Frontline, click your name (bottom left) > Settings > Bring your own Agent > Create personal API key, then give the key to the agent. It is shown once. No account yet? Sign up free, no credit card needed.

Sign in

Or set FRONTLINE_API_KEY in the environment.

Expect:whoami prints the signed-in user.

Install the skills

Installing the CLI already does this. Run it again after an update; add --force to overwrite.

Expect:55 skills in ~/.claude/skills/, one folder each.

Read the data model

Expect:Standard objects (people, companies, deals, tickets) plus any custom ones marked custom: true, then every field on people.

Create an object and a field

Schema changes need the key of an admin or owner. The body is strict: unknown keys return 400.

Expect:A new installs object with a title field and an Install date field.

Create a record

Use the field keys that object schema installs returns.

Expect:The new record as JSON, with its id.

Import a CSV

There is no CSV upload command. Convert the file to a JSON array with the same field keys, then create the records in one call.

Expect:One new record for each row.

Find it again

Expect:The Oakland depot record.

Everything else

Relations, views, workflows, sequences, campaigns, agents and Max.
The CLI reference lists every command and flag, one page per command group.

Use the MCP server

For Claude, ChatGPT, Cursor, Codex and any other MCP client. 200+ tools over the same CRM.

Sign in with OAuth

No API key to paste.
A person does this:Add Frontline in your MCP client's connector settings, then approve the connection in the browser. From then on, every tool call runs as you.

Access follows your rules

Set in Frontline under AI governance.
Admins give full access, read only or no access, by workspace, team and user. A call outside those rules is blocked, and every call shows in the connector logs.

Then just ask

The client picks the tools.

  • Add a Kanban board for installs, grouped by status.

  • Which deals over $10,000 have not moved in two weeks?

  • Log today's call with Maya Chen and set a follow-up for Friday.

No MCP client and no terminal? Send your user to sign up in the browser. No credit card needed.

Call the REST API

For your own services, scripts and backends, in any language with HTTP.

Base URL and header

Uses the same personal API key as the CLI.

Make a first call

Expect:A JSON list of the workspace's objects.

Use a user key to write

Two kinds of key.
An account key reads general endpoints. Writes and the objects endpoints need a user key, which acts as that person.

Limits and reference

1,000 requests a minute per account. The OpenAPI reference covers every endpoint.

Give your agent a CRM