Agents and credentials
How to create an agent, copy the agent id and token, and manage token safety.
An agent is the Pacerelle record for one local runtime. The runtime can be a Node.js process, Python process, MCP server, or any service built with the SDK.
Create an agent
In the web app:
- Sign in.
- Open Agents from the left navigation.
- Click New agent.
- Enter a clear name, for example
Ollama laptoporRelease helper. - Add a short description if future you will need context.
- Click Create agent.
Pacerelle then shows a confirmation panel with the credentials your local process needs.
Copy the environment variables
The confirmation panel contains:
Use Copy .env configuration. Paste the copied values into the .env file used by your local runtime.
The token is shown once
Copy it before closing the dialog. If you lose it, rotate the token from the agent settings and update your local .env file.
What the id and token do
PACERELLE_AGENT_ID tells the runtime which Pacerelle agent it represents. It is not the secret, but avoid publishing it unnecessarily.
PACERELLE_AGENT_TOKEN lets the runtime connect as that agent. It is secret. Treat it like a password.
Store the token safely
Do:
- keep the token in
.env, Docker secrets, or your hosting secret manager - add
.envto.gitignore - use separate agents for development and production
- rotate the token if it was pasted into the wrong place
Do not:
- commit the token to Git
- paste it into browser code
- share it in screenshots, support tickets, or public logs
- reuse the same token across unrelated machines
Check online status
After your local runtime starts, return to Agents. The agent should show as online while the runtime is connected.
If it stays offline:
- Confirm the
.envfile has bothPACERELLE_AGENT_IDandPACERELLE_AGENT_TOKEN. - Restart the runtime after editing
.env. - Confirm the token belongs to the same agent.
- Check that your network allows outbound WebSocket traffic.
Rotate a token
Rotate the token when:
- it was exposed
- you moved the runtime to another machine
- a teammate no longer needs access
- you are separating development and production
After rotation:
- Copy the new
.envconfiguration. - Replace the old token in your runtime environment.
- Restart the local process.
- Confirm the agent returns online.
Delete an agent
Delete an agent when you no longer want that local runtime to connect. Deleting an agent stops future connections for its token. Create a new agent if you need a clean setup.
Naming guidance
Use names that explain where the runtime lives and what it does:
MacBook OllamaHome NAS file agentn8n automation runnerRelease checklist MCP