Skip to content
Changelog

API keys

Use an API key for agents that run on a server or can’t open a browser, like OpenClaw, Hermes and scripts. A key acts as you and can never see more than you can.

  1. In Nysa, open Settings → Keys and choose Create API key.
  2. Fill in the dialog:
    • Name: name it after the agent, like “OpenClaw”.
    • Permission: Read only (default) or Read and write.
    • Scopes: All scopes (default), All except, Only some scopes or No scopes.
    • Projects: All projects (default), All except, Only some projects or No projects. These choices limit project visibility, not fact access.
    • Expires after: 30 days, 90 days (default) or 1 year.
  3. Choose Create key. Nysa shows the key once: copy it now.
  4. Store it as the environment variable NYSA_API_KEY on the machine where your agent runs.

Keys start with nysa_. Your agent sends it as a header:

Authorization: Bearer nysa_...
  • Read only is enough for searching, briefings and reading meetings. Write tools answer “This API key is read-only.”
  • Read and write lets the agent save notes, correct facts, save skills and import a brain.
  • Only some scopes limits the facts the agent can read. Only some projects limits the projects it can see. You can only pick scopes and projects you can see yourself. Selecting a project does not grant access to its facts.
  • All except includes everything you can access in that category except your selections. Choose the scopes or projects to exclude. Edit the key to include scopes or projects you gain access to later in that category. An excluded project stays hidden even if its visibility changes. We exclude a fact if it or any source has an excluded scope label. Another allowed scope does not restore access.
  • No scopes keeps knowledge shared with the whole workspace available. No projects hides project results. Fact access still follows your selected scopes and each source’s readers.
  • Meeting access still follows your current permissions. A key does not keep access to a meeting after you lose it.

We show Private projects only to their members. Workspace owners have no exception. Open projects are visible across the workspace. Project visibility does not change fact access. Facts keep their source readers.

Some tools need the key to include your Personal scope (or all scopes):

Feature Needs
Search and briefings Any key
Your notes, calendar and agent memory Personal
Saving notes, correcting or removing facts Read and write + Personal
Changing meetings on your calendar Read and write + Personal
Importing a brain Read and write + Personal
Searching original emails (search_sources) Unrestricted key, with no exclusions
Saving skills Read and write

When a key can’t use a tool, your agent gets a message like “Brain import is not available for this API key.”

When search uses your agent memory to interpret a name, the results still follow the key’s access limits.

If we cannot verify a key’s access limits after a change to workspace access, we refuse the key. Ask a workspace owner for help, or email hello@usenysa.com. We do not widen the key’s access.

  • You can change a key’s name, permission, scopes and exclusions later. Changes apply on the key’s next use.
  • Revoke key stops it immediately: anything using it stops working. Expired keys show Delete key instead.
  • Each member can have up to 25 active keys per workspace.
  • You only see and manage your own keys, admins included.
  • A key stops working when it expires, when it’s revoked, or when its owner leaves the workspace.

Owners, admins, members and people with the Contribute only role can create keys. Viewers can’t. Contribute only keys can use only your own private notes and calendar, plus sign out. They cannot read or change shared Brain data. New keys stay Read only by default; choose Read and write to save notes or change calendar events. Scope and project choices do not appear for this role.

If Keys is missing from Settings, API keys aren’t turned on for your workspace: use OAuth or email hello@usenysa.com.