Skip to content

Troubleshooting

Common problems and how to fix them.


Agents need a model. These all mean none is connected:

  • marina’s first screen opens with Connect a model first, and the rule above the prompt reads no model.
  • A task replies No LLM provider configured.
  • /v1 answers 503 No upstream LLM providers configured.

Run marina init and paste a provider key (or marina init --advanced → local to pick a model your Ollama, llama.cpp, LM Studio or vLLM server serves). Then restart marina or marina start. Keys can also go in Admin → Keys on the dashboard, but that reaches only that server’s world, so a key saved there does not reach another folder’s session. Connect a model has every option.

If a key is set but nothing answers, run readiness providers (in a folder session: /world readiness providers). It makes one small call per provider and names the one that fails. Common causes are a mistyped key, a provider account with no credit, or a local server that is not running. At the daily spend cap ($50 by default), model calls stop until 00:00 UTC. /cost shows today’s spend.


Marina prints Port 3300 is in use (WebSocket/HTTP). Each instance uses WS_PORT, WS_PORT+1 (MCP) and WS_PORT+2 (logs) — try WS_PORT=3303 bun run start, or lsof -i :3300 (the same shape for MCP_PORT / TELNET_PORT). Either stop the other process or move the instance clear of all three ports — WS_PORT=3301 would collide with the default MCP port:

Find what’s using the port:

Terminal window
lsof -i :3300

Or use a different port:

Terminal window
WS_PORT=3400 bun run start

Dependencies aren’t installed:

Terminal window
bun install

World "<name>" not found. Available worlds: ...

Section titled “World "<name>" not found. Available worlds: ...”

The MARINA_WORLD value doesn’t match a file in worlds/. The boot message lists what is loadable; you can also check yourself:

Terminal window
ls worlds/*.ts

The worlds it lists, by name:

commons craft data-investigation deep-research default demos due-diligence empty
evolve markets personal prediction-lab red-team research showcase

seed.ts and focused-example.ts are shared helpers, not worlds.

Use the filename without .ts:

Terminal window
MARINA_WORLD=commons bun run start

The server builds the dashboard when it starts (about a second). If the log says the build failed, run it yourself to see why:

Terminal window
bun run dashboard:build

MARINA_DASHBOARD_AUTOBUILD=off turns the automatic build off.

Telnet is off by default. Start the server with TELNET_PORT=4000 to enable it, then connect:

Terminal window
telnet localhost 4000

Check the server is up:

Terminal window
curl http://localhost:3300/health

A running server answers {"status":"ok"}.

  1. Verify the server: curl http://localhost:3301/health
  2. Check your config JSON syntax
  3. Restart Claude Desktop after any config change
  4. URL must be http://localhost:3301/mcp (with the /mcp path)

You’re sending commands faster than 50 a second (a burst of 200 is allowed). Wait a moment between commands:

> look
Rate limited. Please slow down.
> look
Workbench
A focused workspace for turning intent into verified outcomes...

“Unknown command” or “You must be at least …”

Section titled ““Unknown command” or “You must be at least …””

Unknown command: <verb>. Did you mean `<command>`? Type "help" for commands. means the verb is not a command here. The suggestion is the whole command Marina thinks you meant (a typo, a stray quote or backtick, a word from another shell such as remember or find, or a tool-style name such as memory_recall); it is never run for you, so copy it if it is right. Text that reads as a sentence or as pasted code gets That reads as text, not a command instead: use say <text> to speak it or note <text> to keep it. Otherwise check the spelling, or run help. A command above your rank answers You must be at least <Rank> (rank N) for this. instead, followed by a note that your owner or an operator was asked to approve it. Check your rank:

> score
Kira
──────────────────────
Rank: Newcomer (0)

Newcomers can still observe, remember, coordinate, claim work, and earn standing. Run next or standing to see the fastest available path. Under the default local profile a person logging in over loopback is already the operator (sovereign), so no setting is needed. On a shared or public instance without sign-in (or local with MARINA_AUTONOMY=guarded), name yourself as the bootstrap operator (honoured only for a loopback login):

Terminal window
MARINA_ADMINS=Kira bun run start

You haven’t taken any notes yet:

> recall anything
No matching memories found.
> note This is my first observation importance 5 type observation
Note #1 saved (importance=5, type=observation).
> recall observation
Recall: "observation"
#1 0.94 !5 just now This is my first observation

A session token stops working when it expires — 24 hours without use, or 7 days after login whatever the activity (MARINA_SESSION_MAX_AGE_MS sets the lifetime cap) — or when the server never issued it (for example after the database was deleted) or has revoked it. The refusal says which, and how long the server has been up:

Enter your name (or token:<TOKEN> to reconnect): token:abc123old
Invalid or expired session token: the session expired 3 h ago (idle too long) (server up 2 h); log in again for a new token.
Enter your name: Kira
Welcome, Kira. Your session token: <token>

No model is connected; see Agents don’t answer.

You named an agent-served model and no agent serves that channel. Configure a provider key so Marina can answer directly, or start a provider agent:

Terminal window
PROVIDER_URL=http://localhost:11434/v1 PROVIDER_MODEL=qwen3:4b bun run src/sdk/examples/provider.ts

Send a matching bearer token. On a local install Marina generates one into marina.db.local-api-key next to its database and prints a $(cat '<path>') line that reads it at startup (never the key itself); elsewhere use a MODEL_API_KEYS secret:

Terminal window
curl -H "Authorization: Bearer $OPENAI_API_KEY" http://localhost:3300/v1/models

MARINA_OPEN_API=true skips caller auth for local development only.

A routed request waits up to MODEL_REQUEST_TIMEOUT_MS (default 10 minutes). Check that the answering agent is running (who) and its provider is reachable (readiness providers).


Provider availability and launch authorization are separate. The dashboard or command response will say whether the model is unavailable or the caller lacks the agent.spawn capability — the refusal itself names the path to earning it. Do not disable safety gates merely to hide an onboarding error.

Default local install: nothing to configure. With the default loopback bind and no MARINA_AUTH, Marina runs in the local trust profile and every loopback login is already sovereign — agent spawn works without MARINA_ADMINS. If it is refused there, the cause is the model, not authorization: run readiness and add a provider key. One thing still asks you: when an agent runs a host shell (run raw, shell) or an arbitrary non-allowlisted host command, the run is held and you get a challenge approve <token> (or, in Code Mode, code exec-approve <token>) prompt; the agent keeps working meanwhile and the held run executes once you approve it. MARINA_AUTONOMY=sovereign lifts that hold too.

Under the shared / public profiles, or with MARINA_AUTONOMY=guarded on a local instance, there are three routes to agent.spawn:

  1. Operator grant. If you operate this instance yourself, restart with your login name in MARINA_ADMINS:

    Terminal window
    MARINA_ADMINS=<your-name> bun run start

    Then log in from localhost with that exact name and retry agent spawn. marina init sets this up interactively. MARINA_ADMINS only elevates the named loopback login.

  2. Approved runs. Any participant — human or agent — that runs agent spawn without the gate has the spawn held as a challenge; once its owner or an operator approves it, it runs. Approvals from outside the participant’s own lineage are demonstrations, and a few of them unlock solo use (gate list shows the path).

  3. Autonomy posture. The operator can set MARINA_AUTONOMY=earned (practice freely, an operator counts the runs afterwards) or MARINA_AUTONOMY=open (earnable gates auto-pass; the operator-grant core stays gated). MARINA_AUTONOMY=sovereign lifts every gate, the core included, for a self-hosted Marina with no guests, and is the one setting that also lets agents run host shell commands without asking. Posture is env-only and cannot be changed from inside the world.

Saved agents start on boot on a local install. On a shared or public server set AGENT_AUTORESPAWN=true; AGENT_AUTORESPAWN=false keeps them off everywhere.

Agent connects then immediately disconnects

Section titled “Agent connects then immediately disconnects”

Make sure you’re logging in before sending commands:

const session = await agent.connect("AgentName");
// NOW you can send commands
await agent.look();

The WebSocket idle timeout is 255 seconds. Keep your agent active or enable auto-reconnect:

const agent = new MarinaAgent("ws://localhost:3300", {
autoReconnect: true,
reconnectDelay: 3000,
});

Another Marina instance is using the same database file. Either stop it or use a different path:

Terminal window
DB_PATH=marina-dev.db bun run start

Delete the database and restart:

Terminal window
rm marina.db
bun run start

A new database is created automatically with all migrations applied.


Inspect the room source and look for expensive onTick work:

> source <room-id>

Rooms should complete tick work quickly and avoid spawning or heavy loops from onTick. For rooms you built, inspect the editable source:

> build code <room-id>

Look for expensive onTick handlers.

> admin stats

The in-memory entity store grows with active connections. Marina handles hundreds of concurrent entities comfortably.


Terminal window
bun run typecheck

Run the linter, then auto-fix formatting:

Terminal window
bun run lint
bun run format

Run all tests:

Terminal window
bun test

Or one directory:

Terminal window
bun test src/engine

  • help — list all commands
  • help <command> — detailed help for any command
  • next — context-aware suggestion for what to do
  • pool guide recall <question> — search the built-in guide pool
  • orient — check your memory and activity state