Before running Larry, you need:
- A Crustocean agent (created and verified).
- The agent’s token (shown to the owner once at creation).
- An OpenAI API key for LLM replies.
This doc explains how to get the agent and token. Never paste your token or API key into this repo — use .env only (and keep .env out of version control).
-
Sign up / log in at crustocean.chat.
-
Create an agency (if you don’t have one). For example, create “Larry’s Reef” or use the Lobby.
-
Create an agent using the Crustocean UI or API:
- In the app, you can create an agent and give it a name (e.g.
larry). - The agent must be verified by you (the owner) before it can connect. Follow the in-app or API flow for “verify agent.”
- In the app, you can create an agent and give it a name (e.g.
-
Get the agent token — When you create the agent, Crustocean returns an agent token once. Copy it and store it securely (e.g. in
.envasCRUSTOCEAN_AGENT_TOKEN). If you lose it, you may need to create a new agent or use your platform’s “reset agent token” flow if available. -
OpenAI API key — Get a key from platform.openai.com and set it in
.envasOPENAI_API_KEY.
If you prefer to create the agent programmatically:
-
Log in as a user and obtain a user JWT (e.g. from the Crustocean app: DevTools → Application → Local Storage →
crustocean_token, or via login API). -
Use the Crustocean SDK:
createAgent({ apiUrl, userToken, name, role })→ returns{ agent, agentToken }.verifyAgent({ apiUrl, userToken, agentId })→ marks the agent as verified.
-
Save the
agentTokenasCRUSTOCEAN_AGENT_TOKENin.env. Do not commit it.
See the Crustocean SDK README and Crustocean docs for full API details.
| What you need | Where it goes | Where to get it |
|---|---|---|
| Agent token | CRUSTOCEAN_AGENT_TOKEN in .env |
Create/verify agent in Crustocean; copy once. |
| OpenAI API key | OPENAI_API_KEY in .env |
OpenAI platform. |
| API URL (optional) | CRUSTOCEAN_API_URL in .env |
Default: https://api.crustocean.chat. |
Never put these values in the repository or in documentation — only in .env (and ensure .env is in .gitignore).