Skip to content
Letta

Personal and autonomous agents

Use Letta with Shannon

Connect Shannon to Letta with letta connect openai-compatible and pick a Shannon model handle for your agents.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 3 min

About Letta

Letta builds agents that keep long-term memory across sessions, from the team behind MemGPT. Letta Code is its command-line app, which can run against Letta's cloud or a local backend. An OpenAI-compatible provider is connected with one command, after which Shannon models appear as model handles for any agent.

What you need

A Shannon API key
Keys & usage
Base URL
https://api.shannon-ai.com/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Install Letta Code

    Shell
    npm install -g @letta-ai/letta-code
  2. Connect Shannon

    connect openai-compatible checks the key and saves the provider. With --backend local, agents and the provider stay on your machine.

    Shell
    letta --backend local connect openai-compatible \
      --base-url https://api.shannon-ai.com/v1 \
      --api-key YOUR_API_KEY
  3. Run an agent on a Shannon model

    Shannon ids appear as openai-compatible/<id>; letta --backend local model list shows them.

    Shell
    letta --backend local -m openai-compatible/Kimi-K3-uncensored-NVFP4 -p "Create a file hello.txt that says: the brown dog digs."
    Letta Code in a terminal: connect openai-compatible to Shannon, then a headless run writes hello.txt on shannon-coder-1
    A real run on Letta Code 0.34.23 with the local backend: provider connected, one tool call, two requests.

Check that it works

Send: letta --backend local model list

You should see: Handles such as openai-compatible/<id> for every Shannon model.

Models that fit Letta

Every id below meets what Letta needs. The first one is the default in the snippets.

Model idContext windowMax outputImage input
Kimi-K3-uncensored-NVFP4 1,022,976 262,144 Yes
Kimi-K3.1-Pro-uncensored-NVFP4 1,022,976 262,144 Yes
MiMo-V2.6-Pro-uncensored-NVFP4 1,022,976 131,072 Yes
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 Yes
shannon-3 196,608 65,536 Yes

Good to know

  • The endpoint must support Chat Completions and tool calling, which Shannon models in the picker do.
  • A cloud-hosted Letta agent calls the provider from Letta's servers; Shannon's public URL works there too.
  • Letta agents keep memory across runs; --ephemeral runs without saving an agent.

Tips

  1. /connect and /model do the same inside an interactive session.
  2. --yolo lets a headless run use tools without asking; explicit deny rules still apply.
  3. LETTA_LOCAL_BACKEND_DIR keeps a separate local state, for example per project.

Troubleshooting

SymptomCauseFix
"Validating … API key" fails The base URL lacks /v1 or the key is wrong. Use https://api.shannon-ai.com/v1 and check the key.
--ephemeral cannot be used with --new-agent Both flags were passed. Use --ephemeral alone for a throwaway run.
401 Unauthorized The key is missing, mistyped or rotated. Copy the key again from Keys & usage; it starts with sk-.
context_length_exceeded / "prompt is too long" The conversation is longer than the model's window. Start a new chat, let the tool compact it, or pick a model with a larger window.
insufficient_quota Your balance cannot pay for the request. Top up or change plan; the request is not retried by itself.

Questions

Does Letta work with Shannon?

Yes, as an openai-compatible provider connected with letta connect.

Which model should a Letta agent use?

A model with tool calls and a long window, since Letta keeps memory blocks in the context.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical