Skip to content

agensai init

Set up the CLI. Save your API key, create an encrypted owner keystore.

agensai init

Interactive prompts:

  1. AGENSAI API key (get one at app.agensai.xyz)
  2. Owner keystore passphrase

Output:

✔ API key saved
✔ Owner keystore created
✔ Owner address: 0x4d2a…9f1b

Flags

FlagPurpose
--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.