# The CLI

> Every command of npx @sypnia/agent.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://agent.docs.sypnia.com/tools/cli/

For agents: Commands: login [--key], "<request>" [--budget N] [--case id] [--cloud] [--teach], tasks, logs <task>, approve <id> / deny <id>, profile (level, retake test), memory (list/edit/forget), rules (show the effective permission tiers).

### `agent login`\[Engine, Cloud]Signs in with your Sypnia account (device flow), or `--key` to use your own model key without an account; the key goes to your system's keychain.

### `agent "<request>"`\[Engine, Cloud]Starts a task in the current repository. Flags: `--budget <credits>`, `--case <id>` (work on a known case), `--cloud` (run it in a hosted sandbox instead of locally), `--teach` ([teach mode](https://agent.docs.sypnia.com/work/teach-mode)). The same local task can be started from the desktop app of [Sypnia App](https://app.docs.sypnia.com/), which runs it in this same local sandbox.

### `agent tasks`\[Engine, Cloud]Your tasks and their state.

### `agent logs <task>`\[Engine, Cloud]Every step of a task: commands, tool calls, cost.

### `agent approve <id> / agent deny <id>`\[Engine, Cloud]Decide an approval from the terminal.

### `agent profile`\[Engine, Cloud]Your level and preferences; `--retake` takes the knowledge test again.

### `agent memory`\[Engine, Cloud]List, edit or forget what the agent remembers about you and this project.

### `agent rules`\[Engine, Cloud]The rules in force for this project: what it does freely, asks once, always asks.
