Control the pi agent with the pi command

The aitm pi command allows you to control the pi agent.

How to start pi?

To use pi, you need to configure a provider authentication. You can do it via:

For more information, all details are available in the pi providers documentation page.

With an env

bash
OPENROUTER_API_KEY=xxx aitm pi # with [pass](https://www.passwordstore.org/) OPENROUTER_API_KEY=$(pass "my/open/router-key") aitm pi

With the login command

bash
aitm pi # then /login [provider]

With the aitm service (Inside an IDE)

IDE embed agents, and they may force you to use the login flow.

In this case, you can:

bash
aitm service start
json
{ "httpProxy": "http://localhost:8080" }

How to create a work?

bash
aitm \ --session-dir session \ pi \ --system-prompt SYSTEM.md \ --no-skills \ --skill "~/.agents/skills/python/SKILL.md" \ --skill "~/.agents/skills/code/SKILL.md" \ --prompt-template prompt.md # then /prompt

How to get status information?

We inject a plugin that will print the Aitm status

markdown
/aitm-status