Skip to content
commcare nova

API keys

Connect a tool to Nova without going through a browser sign-in.

API keys are the alternative to signing into Nova through your browser. Mint one in settings, paste it into your tool's config, and it stays connected.

When to use one

Use OAuth (the default) for the everyday case: a person, a browser, one tool at a time. You sign in once and the tool stays connected until you revoke it.

Pick an API key when you want any of these:

  • An unattended pipeline that runs while you're not at the computer.
  • Multiple parallel tools or agents using the same Nova account at the same time.
  • A shared bot account that several scripts speak through.

OAuth's sign-in needs a person at a browser, and parallel tools sharing one OAuth sign-in fight each other every time their connection refreshes. API keys don't have either problem.

Mint a key

Open Settings → API keys on commcare.app, signed in as the account that should own the key.
Click + New key and pick a name. The name only shows up in your keys list, it doesn't affect what the key can do.
Pick the scopes. Read and Write are required. Add the HQ scopes if your tool needs to upload finished apps to CommCare HQ, and the Projects scopes if it manages shared Projects, members, and invitations.
Pick an expiry. 1 year is the default. Pick shorter if you want tighter rotation, or Never expires for credentials you'll rotate manually on your own schedule.
Click Mint key. The next screen shows the full key once, copy it now. Nova hashes it after that, so if you lose the full value you'll have to mint a new one.

Use it with Claude Code

Set NOVA_API_KEY to your key value in the environment that starts Claude Code:

export NOVA_API_KEY="sk-nova-v1-YOUR_KEY_HERE"

Replace the example value with your actual key. Then add a personal server configuration once:

claude mcp add-json --scope user nova '{"type":"http","url":"https://mcp.commcare.app/mcp","headers":{"Authorization":"Bearer ${NOVA_API_KEY}"}}'

The single quotes preserve the environment-variable reference, so the saved configuration contains no key value. Claude Code reads the key from the environment at startup. Keep it set for each unattended run.

This works with or without the Nova plugin. With the plugin installed, Claude Code uses your personal connection in place of the bundled connection to the same endpoint. The plugin's skills and autonomous agent support both connections.

The plugin's bundled connection uses browser sign-in. Setting NOVA_API_KEY alone does not change it: Claude Code removes credential environment variables from plugin-provided header helpers. The personal configuration above uses Claude Code's supported environment expansion and server precedence.

To return to browser sign-in with the plugin, remove your personal connection and restart Claude Code:

claude mcp remove --scope user nova

Without the plugin, replace the personal connection with one that has no Authorization header:

claude mcp remove --scope user nova
claude mcp add --scope user --transport http nova https://mcp.commcare.app/mcp

Unsetting the key alone leaves the API-key connection configured. A missing or rejected key fails authentication rather than falling back to browser sign-in. Check that NOVA_API_KEY is set in the environment that starts Claude Code, then reconnect through /mcp.

Scopes

Each key can have any combination of these:

ScopeWhat it grants
nova.readList, read, and search apps in your account. Required.
nova.writeCreate and edit apps. Required.
nova.hq.readLook up which CommCare HQ project spaces your stored API key can reach, check whether one can run an app, and see where an app is published.
nova.hq.writeUpload apps to CommCare HQ and look after where they're published: check how a published app is doing, make worker accounts and links into an app, and stop publishing to a project space.
nova.hq.importUse your stored CommCare HQ API key to read a project space's apps, lookup tables and places, and see who in Nova already manages an app there, and to bring them into a Nova Project, where every member of that Project can see them. It also brings in changes made in CommCare HQ. An upload that refreshes HQ-managed tables or places, or a check that refreshes the settings HQ keeps for an app, needs this scope alongside nova.hq.write. Handing a lookup table to Nova or back to CommCare HQ needs it and nova.hq.write.
nova.projects.data.exportPrepare and read a private data file for a selected project space. Your account needs Project editing access and a current connection to that destination.
nova.preview.search.readSee the selected app's available destinations and the Preview search and map settings your team recorded for them.
nova.preview.search.writeChange the Preview search and map settings shared by apps in the Project at a destination. Recording a change also needs nova.preview.search.read.
nova.projects.readSee a shared Project's member list and pending invitations, including members' names and emails.
nova.projects.writeCreate shared Projects, invite members, change member roles, and move apps between Projects.

Set scopes when you mint, change them later from the kebab menu → Edit scopes. Read and write are the floor; nothing in Nova works without them. The others are independent opt-ins. A key made before nova.hq.import existed that held both nova.hq.read and nova.hq.write was given it too, since together those already reach CommCare HQ with your stored key. Any other key, a new one included, needs nova.hq.import checked to bring apps in from CommCare HQ. The pairs are independent too: write doesn't include read, so give a key that manages members both Projects scopes — update_member_role addresses members by ids that only list_members (a Projects-read tool) returns. Listing the Projects you belong to needs no extra scope; every key can call list_projects.

Rotating and revoking

Every key in the list shows when it was last used and when it expires. To rotate, mint a new key, point your tool at the new value, then revoke the old one, there's no in-place rotation, because Nova only keeps the hash.

To revoke, click the kebab on the row → Revoke → confirm. The next call from that key fails immediately.

API keys and OAuth sign-ins are independent. Minting a key doesn't disturb any browser sign-ins on the same account, and revoking either kind doesn't touch the other.