Skip to main content
Writes a nanny.toml with safe defaults into the current working directory.
nanny init

What it does

Creates a nanny.toml with conservative defaults that work for most agents out of the box:
[runtime]
mode = "local"

[start]
# How to launch your agent. nanny run reads this command.
cmd = "python agent.py"

[limits]
steps   = 100
cost    = 1000
timeout = 30000
After running nanny init, set [start].cmd to your agent’s entry point and adjust the limit values to match your requirements.

Flags

nanny init takes no flags. It always writes to the current working directory.

Errors

ConditionBehaviour
nanny.toml already existsExits with an error. Does not overwrite.
No write permission in current directoryExits with an error.
To reset a config, delete nanny.toml and run nanny init again.

Next step

Once your config is in place, run your agent:
nanny run
See nanny run for the full command reference.