AmoCRM with your AI agent, step by step
Common amoCRM CLI tasks step by step: the first sync, keeping the copy fresh, safe agent writes.
Each scenario is a common task in order: the commands to run, why each one runs and what to look at in the answer. The same scenarios are in the terminal: amo guide lists them, and amo guide first-sync prints one.
Commands that use an account start with your profile, the name you gave the account at login, such as amo personal ….
First sync and the pipeline board
Copy your deals and their clients into the local store and see where each deal stands.
-
amo work setupthe account's address, then one click in the browser for an amoCRM administrator, or the long-lived token from a private integration, saved only after the account answers
-
amo work session status --checkthe account and the user the sign-in acts as, and whether that user is an administrator
-
amo work synccopies the pipelines, the deals assigned to you and only the contacts and companies on them, and the next sync takes only the changes
-
amo work pipelines show Salesthe pipeline as a board and a funnel, how many deals stand in each stage and how many reached it
-
amo work deals list status:openthe open deals with stage, amount and owner, from the store, offline too
What to look at:
- the user in session status, since a colleague's token copies their deals, not yours
- warnings in the sync answer, such as a page the account refused
- the stage where most deals wait
The commands use work as the profile, the name you gave the account's sign-in. Put your own name in its place.
Sales stands for one of your pipelines, and amo work pipelines list names them. An administrator can copy
colleagues' deals too, by their user ids: amo work users list, then the unassigned setting on the settings page.
That list replaces your own, so include your own id. No setting copies the whole CRM, and any other client is read
live with people or organizations.
In the terminal: amo guide first-sync
Keep the copy up to date
Have the local store follow the account on its own, and search it beside your other WireCat tools.
-
amo work schedule command crm --every 1h -- synca timer on this computer that runs sync every hour and reads only what changed
-
amo work schedule listthe schedule, when it runs next and how its last run went
-
amo work store statushow far each kind's sync is, how many records are stored and when it last ran
-
amo work search all invoicestored deals beside your messages, notes and meetings from other WireCat tools
What to look at:
- a schedule whose last run failed
- a kind in store status that is partial, which the next sync goes on with
The commands use work as the profile, the name you gave the account's sign-in. Put your own name in its place.
amo work sync --rescan reads everything again, every id too, when the copy looks wrong.
In the terminal: amo guide keep-in-sync
Let an agent change the CRM without surprises
Give an agent your CRM over MCP while the writes that reach clients or cannot be undone stay yours.
-
amo work config set permissions.deals.move readonlya stage change can start the account's own automation, such as a Salesbot that writes to a client. Over MCP ask does not ask, so ask stops nothing there
-
amo work config set permissions.deals.close denyno agent marks a deal won or lost, whatever it is asked
-
amo work mcp add claude-code --permission people.update=deny --allow-writesadd this profile to Claude Code. This server also refuses contact changes, and --allow-writes acknowledges the writes it still offers
-
amo work config showeach permission with its level and where it came from
-
amo work runs listwhat the agent ran, refused writes too
What to look at:
- the levels of deals.move, deals.close and people.update in config show
- refused runs in runs list, and which command asked
The commands use work as the profile, the name you gave the account's sign-in. Put your own name in its place.
At a terminal ask still asks before the write. Over MCP nobody is there to answer, so a write at ask goes ahead.
Set readonly or deny, or turn on approval of amo_write in the agent client.
In the terminal: amo guide safe-agent-writes