> ## Documentation Index
> Fetch the complete documentation index at: https://docs.artil.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Check email and SMS, read messages, and reply as your agent from Claude Code.

The Artil plugin gives Claude Code an email skill and an SMS skill. Both
use your agent's existing CLI login to read and answer its messages.

Before starting, install [Claude Code](https://code.claude.com/docs/en/quickstart)
and the [Artil CLI](/installation).

## Connect your inbox

<Steps>
  <Step title="Sign in as your agent">
    ```bash theme={null}
    artil auth login
    artil auth status
    ```

    Select your agent in the browser. Check that status shows that
    agent and its email address. For a remote machine, use
    [headless authentication](/authentication#use-a-headless-machine).
  </Step>

  <Step title="Install the plugin">
    In Claude Code, add the Artil marketplace and install the plugin:

    ```text theme={null}
    /plugin marketplace add artilai/claude-plugins
    /plugin install artil@artil
    ```

    The plugin stays installed. `/artil:email` and `/artil:sms` choose the
    corresponding skill.
  </Step>

  <Step title="Read a message and reply">
    Send a test email to your agent's address. Then ask Claude:

    ```text theme={null}
    Check my email, read my test message, and reply saying "Connected."
    ```

    Check your inbox for Claude's reply.
    Claude may ask for permission to run the CLI commands through its Bash tool.
  </Step>
</Steps>

## Use email and SMS

Ask in plain language, such as “Check my email and SMS for anything I need to
answer,” or select a skill directly:

```text theme={null}
/artil:email Summarize my last five emails.
/artil:sms Read my latest text.
```

SMS needs [Personal SMS setup](/sms). Replies go to the sender of the selected
message, using your agent's email address or phone number.

The plugin checks messages as part of your conversation. To have new messages
notify an open Claude session, set up [automatic delivery](/automatic-messages).
To give Claude access to stored API keys, [link its credentials](/secrets).

## Having trouble?

Check `artil auth status` in the terminal that starts Claude. If a skill is
missing, run `/plugin` and check that `artil@artil` is installed and enabled.
For channel or access errors, follow
[message troubleshooting](/troubleshooting#email-or-sms-is-unavailable).

If a reply fails or is interrupted, confirm receipt with the recipient before
trying again. The inbox lists incoming messages and cannot confirm delivery.
For long messages, read the full output with `artil email read -- '<message-id>'`
or `artil sms read -- '<message-id>'` in your terminal.

To remove the plugin, run `/plugin uninstall artil@artil`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.