---
title: "Work with Max from another AI agent: the max CLI"
description: "How Claude Code, Codex or any agent works with Max, Frontline's personal agent: sign in, send messages with max chat send, schedule routines, read meetings. Commands from the docs."
canonical: "https://www.getfrontline.ai/en/agents/max"
language: "en"
image: "https://cdn.ploy.ai/6eb8e7fc-f32e-4425-a7a1-206f93c19f37/user/0ec72fa8-frontline-social-sharing-preview.webp"
---
# Work with Max from your agent

Max is the personal agent each Frontline user gets. Your agent can message it, schedule its routines and read its meetings with the max command.

`npm install -g @getfrontline/cli`

## Sign in as the person

Max acts for one person, so it uses that person's API key.

### Start Max

Done once, in the browser.

A person does this:Start the free trial from the Frontline dashboard: 10,000 Max credits for 7 days, no credit card. After that, the person needs a Max seat.

### Sign in

The same personal API key as frontline auth login.

`max auth login <api-key>` `max auth whoami`

Expect:whoami prints the signed-in user.

## Message Max

Ask in plain words, as the person would.

### Send a message

Waits up to 60 seconds for the reply. Add --no-wait to send and move on.

`max chat send --new --pretty "Which installs are still waiting on a permit?"`

Expect:Max's reply as plain text. Without --pretty, one line of JSON.

### Continue the thread

`max chat send --conversation <conversation-id> --pretty "Remind each crew lead on WhatsApp."`

Expect:The reply, in the same conversation.

### From your own code

The endpoint the CLI calls, with the same key.

`POST https://prod-api.getfrontline.ai/public/v1/max/conversations/message`

[max chat docs](https://docs.getfrontline.ai/cli/max/chat.md)

## Schedule a routine

A routine runs on a schedule or on an app event and sends Max's result to the person.

### On a schedule

Use --cron or --trigger-slug, not both.

`max tasks create --name "Today's installs" --instructions "List today's installs with crew and address" --cron '0 8 * * 1-5' --notify-whatsapp true`

Expect:The new task as JSON. It runs weekdays at 08:00 and sends the result on WhatsApp.

### On an event

`max tasks triggers` `max tasks list`

Expect:Trigger slugs such as GOOGLECALENDAR\_EVENT\_STARTING\_SOON, then the person's tasks.

## Read meetings and apps

Meeting Intelligence is a per-person add-on. Recordings are kept 90 days.

### Meetings

`max meetings past` `max meetings transcript <meeting-id>` `max meetings action-items list`

Expect:Recent meetings with their ids, one meeting's transcript, then open action items.

[max meetings docs](https://docs.getfrontline.ai/cli/max/meetings.md)

### Connected apps

`max integrations list`

Expect:The apps this person connected to Max, such as Gmail.

[max integrations docs](https://docs.getfrontline.ai/cli/max/integrations.md)[CLI reference](https://docs.getfrontline.ai/cli)

## Where Max works

### Messaging apps

Max works in WhatsApp, iMessage, Slack, Teams and Telegram, as well as the terminal.

### Routine results

From the CLI, a routine reports by email, WhatsApp or Slack, to a DM or a channel.

### The same CRM

Max reads and writes the records your agent sees, under that person's permissions.

## What it costs

Max is paid per person who uses it. Teammates without a seat still create, read, update and delete CRM records.

### Standard

$50per person a month

$40 billed annually

10,000 Max credits a month

### Plus

$100per person a month

$80 billed annually

25,000 Max credits a month

### Premium

$200per person a month

$160 billed annually

50,000 Max credits a month

200 Max credits cost $1\. Enterprise seats are priced by sales.

[All prices and limits](https://www.getfrontline.ai/en/agents/evaluate)[About Max](https://www.getfrontline.ai/en/max)

## Give every teammate a Max

[Start free](https://app.getfrontline.ai/)[Book a demo](https://cal.com/team/getfrontline/30-min-frontline)
