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/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Install Letta Code
Shellnpm install -g @letta-ai/letta-code -
Connect Shannon
connect openai-compatiblechecks the key and saves the provider. With--backend local, agents and the provider stay on your machine.Shellletta --backend local connect openai-compatible \ --base-url https://api.shannon-ai.com/v1 \ --api-key YOUR_API_KEY -
Run an agent on a Shannon model
Shannon ids appear as
openai-compatible/<id>;letta --backend local model listshows them.Shellletta --backend local -m openai-compatible/Kimi-K3-uncensored-NVFP4 -p "Create a file hello.txt that says: the brown dog digs."
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 id | Context window | Max output | Image 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;
--ephemeralruns without saving an agent.
Tips
/connectand/modeldo the same inside an interactive session.--yololets a headless run use tools without asking; explicit deny rules still apply.LETTA_LOCAL_BACKEND_DIRkeeps a separate local state, for example per project.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| "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.