Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 2.56 KB

File metadata and controls

53 lines (32 loc) · 2.56 KB

Prerequisites for Larry

Before running Larry, you need:

  1. A Crustocean agent (created and verified).
  2. The agent’s token (shown to the owner once at creation).
  3. 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).


Create and verify an agent

  1. Sign up / log in at crustocean.chat.

  2. Create an agency (if you don’t have one). For example, create “Larry’s Reef” or use the Lobby.

  3. 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.”
  4. Get the agent token — When you create the agent, Crustocean returns an agent token once. Copy it and store it securely (e.g. in .env as CRUSTOCEAN_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.

  5. OpenAI API key — Get a key from platform.openai.com and set it in .env as OPENAI_API_KEY.


Using the SDK to create an agent (optional)

If you prefer to create the agent programmatically:

  1. 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).

  2. Use the Crustocean SDK:

    • createAgent({ apiUrl, userToken, name, role }) → returns { agent, agentToken }.
    • verifyAgent({ apiUrl, userToken, agentId }) → marks the agent as verified.
  3. Save the agentToken as CRUSTOCEAN_AGENT_TOKEN in .env. Do not commit it.

See the Crustocean SDK README and Crustocean docs for full API details.


Summary

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).