API keys and teams
API key
Each project has an API key that identifies it to NetStack and authenticates your own servers. It looks like ns_api_....
- The full key is shown once, when the project is created or the key is rotated. NetStack stores only a hash, so a lost key cannot be recovered, only replaced.
- Rotate it any time from API keys > Rotate API key. This is available on every plan. The old key stops working immediately.
- Never ship an API key inside a client build that players can download.
AI key
The AI key (ns_ai_...) lets an AI coding agent read, test, write and roll back your Functions and global properties. It cannot read player or room data, or change keys, the team or billing. Every change it makes is saved in History. Only the owner can generate, rotate or revoke it, from the API keys tab. See AI agents for setup and the full API.
Teams
Invite teammates from the Team tab by their NetStack account email. They need to have signed up first.
| Role | Can do |
|---|---|
| Owner | Everything, including keys, team, settings and deleting the project |
| Manager | Edit Functions and properties |
| Viewer | Look at the project and run test runs, but not change anything |
Every change to Functions, properties, keys and team membership is recorded in an audit log.