monica
Installation
SKILL.md
Monica CRM
Drive a Monica CRM v4 instance from the CLI at scripts/monica — a single stdlib-only
Python 3 script. Every command prints compact JSON on stdout; errors go to stderr with
a Monica error code and a non-zero exit.
Setup
- Get a Personal Access Token: in Monica, go to Settings → API → Create Personal Access Token.
- Copy
.env.exampleto~/.config/monica-api/.env(chmod 600) and fill inMONICA_API_URL(e.g.https://your-instance.example.com/api) andMONICA_API_TOKEN. Env varsMONICA_API_URL/MONICA_API_TOKENoverride the file if set. Self-signed instances can pointMONICA_API_CA_BUNDLEat a CA file — TLS verification is always on. - Verify:
scripts/monica whoami— should print your user +me_contactobject. - Full validation:
scripts/selftest.sh— runs a live create/read/update/delete cycle against the configured instance (creates and fully removes "ZZZ Selftest" contacts and a scratch tag; this touches the live instance, not a sandbox). ExpectPASS=15 FAIL=0andtag cleanup: ok.