Connect an agent
What you do depends on the choice you made in setup.
My own agent
For a script, service or LangGraph app you build. Your agent signs in with a service principal, a credential issued to your organization.
- In setup, name your agent and create its service principal. Leave both audiences checked: the agent needs Govern and the gateway, and audiences cannot be changed later. The key is made in your browser and shown once.
- Keep the credential file the app downloads private: it holds the agent's
private key. Set
NOBLECLOAK_SP_CREDENTIALSto the path of that file. - Copy the Gateway URL that setup shows. It is the address your agent calls.
No agent yet?
The starter agent tries NobleCloak end to end. It needs no model and no key except the service principal's, and it needs Node 20.3 or later. Run it from the folder that holds the credential file:
npx @noblecloak/cli@0.2.2 starter --credentials ./sp-credential.json
Use the file name setup gave you in place of sp-credential.json. On the beta
deployment, add --deployment beta. The starter asks for two approvals, which
the next page walks through.
Already have an agent?
Govern a LangGraph agent runs the whole approval loop for a LangGraph JS agent. Your first governed tool shows the same loop against a mock server that needs no account.
My team's AI apps
For Claude, Cursor or another MCP app.
- In setup, copy the Gateway URL.
- Add it as a connector in the app, sign in, and approve access for your organization.
- If you set up for a team or company, send the URL to teammates who use the app. Each person signs in and approves access for your organization.
For Claude, teammates do not each add the connector. An administrator of an Anthropic Team or Enterprise workspace installs it once for everyone, and each person only signs in. The connector guide has the steps. Developers who use Claude Code can install the plugin instead.