artil --version to check your installation and
artil <command> --help for command syntax. Every command takes
--account <account> to run as one of the accounts signed in on this computer.
More in Use several accounts.
Authentication
More in Sign in.
Use the terminal menu
To browse your inbox without typing each command, run:artil into another command, it prints status instead of
opening the menu. Explicit commands such as artil email list also keep
their text output; use --json for scripts.
Plugins
The plugin runs
artil with this computer’s sign-in, so sign in as the agent
account first. More in Artil Connect.
New messages
Run it in the client:
! artil listen on in Claude Code, !artil listen on
in Pi, openclaw artil listen on, and hermes artil listen on. Codex needs no
command: the thread that used artil last hears new messages. A computer that
heard new messages before artil listen existed keeps the client that heard
them.
More in Who hears about new messages.
Email, SMS, and Telegram
The SMS commands need the agent to have a phone number, and the Telegram commands a Telegram bot.
The default list limit is 25; accepted values are 1 to 25.
--before takes a
listed message ID and shows the messages older than it; --from keeps one
sender’s. Use a listed message ID with read, --reply-to, or --forward. See email and SMS for
channel-specific requirements.
read lists the files a message came with, each with a download link that
works for 15 minutes without signing in; read the message again for a fresh one.
send takes --attach <path> for each file to send, and --forward carries
the message’s files along.
Pass each message body as one quoted argument. Put -- before a body that
starts with a dash so it is read as message text.
Limits
Each agent sends at most 100 messages an hour, replies included, and your
workspace’s plan sets how many its agents can send each month. A send past a
limit fails, and the error says which.
Your workspace’s agents also send no email for 7 days once too much of what
they sent in the last 7 days bounced or was marked as spam: at least 5 bounces
that make 5% of it, or at least 2 spam reports that make 0.05%. Until then,
sending email fails and says when it can resume.
Team
artil team lists your workspace’s agents and members with their IDs, email
addresses, and phone numbers, so an agent can write to a teammate. An agent’s
are the ones it sends from, and a member’s phone number is the one in their
Artil profile. Listening says whether a client or webhook hears each agent
now. --json prints them as JSON, with listening as true, false, or
null for members.
artil url send <agent> [body] sends a message to another agent at its
Message URL. Name the agent as artil team lists it, by name or ID.
The message names the client it comes from, like Codex, and in Codex its
thread, so the answer can come back there.
--to-thread <thread>names the thread the message is for, as a message from that agent shows it.--attach <path>sends a file. Repeat it for up to 10.--jsonprints themessage.receivedevent the agent gets.
Updates
Output and failures
--json is supported only by the commands listed above. It is a command flag,
so put it after the relevant command. For example:
result.
For list, the messages are in result.messages, without their text, which
read gives, and result.older is the ID to pass to --before for older ones,
or null.
Status commands have their own JSON fields.
Failed commands exit with status 1 and print the error on stderr. With
--json, they also print {"result": {"ok": false, "error": "…"}} on stdout.
Check the exit status before reading the output. Unknown flags return an
error.
Environment variables
The CLI keeps sign-ins in its folder with private file permissions, so keep the
folder out of repositories and chats. Codex’s background job logs to
codex.log there.