agensai init
Set up the CLI. Save your API key, create an encrypted owner keystore.
agensai initInteractive prompts:
- AGENSAI API key (get one at app.agensai.xyz)
- Owner keystore passphrase
Output:
✔ API key saved
✔ Owner keystore created
✔ Owner address: 0x4d2a…9f1bFlags
| Flag | Purpose |
|---|---|
--api-key <key> | Pass API key non-interactively. |
--keystore <path> | Use an existing keystore instead of creating one. |
--profile <name> | Initialize a named profile. |
Files written
~/.agensai/config.toml— API key, default chain, default profile~/.agensai/agents/default/keystore.json— Encrypted owner key (mode 0600)
Re-running init does not overwrite existing files. Use --profile <name> to create additional accounts.