letta-ai/letta-code is an agent harness for building assistants that retain memory, identity, and experience across interactions instead of treating each task as isolated. Developers use it through local, desktop, browser, or messaging interfaces for interactive or continuously running agents, and its catalogue entries configure the agents' skills, instructions, rules, and behavior.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add letta-ai/letta-code --skill speech-generationgit clone --depth 1 https://github.com/letta-ai/letta-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/letta-ai/letta-code/speech-generation)<a href="https://agentmods.dev/skills/letta-ai/letta-code/speech-generation"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/speech-generation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/letta-ai/letta-code/speech-generation"><img src="https://agentmods.dev/badge/skills/letta-ai/letta-code/speech-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.02836 |
| Opus 5.5 | $0.00021 | $0.01134 |
| Sonnet 5.5 | $0.00010 | $0.00567 |
| Haiku 4.5 | $0.00005 | $0.00284 |
Grade A, and why
speech-generation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sS -X POST "$base_url/v1/audio/speech" \ How it starts
The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ElevenLabs Text-to-Speech (via Letta)
Generate natural speech from text - supports 90+ languages, multiple models for quality vs latency tradeoffs. Examples default to eleven_v4, the latest and highest-quality model.
This skill is adapted from ElevenLabs' text-to-speech skill
(elevenlabs/skills, MIT; see LICENSE).
Instead of calling ElevenLabs with your own key, you call Letta's hosted endpoint
POST /v1/audio/speech. It forwards the request to ElevenLabs with Letta's key
and charges the organization's Letta credits, so you do not need an ElevenLabs
API key. The request body uses the same field names as ElevenLabs "Create
speech" (the voice ID and output_format go in the body), and the response is
the audio file itself, as with ElevenLabs.
Quick Start
base_url="${LETTA_BASE_URL%/}"
curl -sS -X POST "$base_url/v1/audio/speech" \
-H "Authorization: Bearer $LETTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello, welcome to ElevenLabs!","voice_id":"JBFqnCBsd6RMkjVDRZzb","model_id":"eleven_v4"}' \
--output output.mp3 \
--dump-header speech-headers.txt \
--write-out '%{http_code} %{content_type}\n'
Use the runtime-provided LETTA_BASE_URL and LETTA_API_KEY together. Build
URLs relative to ${LETTA_BASE_URL%/} and do not hardcode
https://api.letta.com. If either variable is missing, the user needs to
authenticate with Letta Cloud; do not ask for an ElevenLabs key.
A 200 with an audio/... content type means output.mp3 is the speech. Any
other status means output.mp3 holds a JSON error with a message instead;
read it (see "Error Handling") and do not share the file.
Share the saved file the way your current surface supports: attach or upload it to the conversation or channel you are replying in. Keep credit amounts out of replies unless the user asks about cost.
Word timings
Use POST /v1/audio/speech/with-timestamps for captions, cueing visuals to
words, or lip-sync checks. It accepts the same body as plain speech (text,
voice_id, model_id, voice_settings, and other options), with the same
Letta authentication and billing; no ElevenLabs key is needed.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 27d ago Changed · +26 lines cf892cc067ee
- 1mo ago Changed · -21 lines 2aa9beb3eae3
- 1mo ago First seen · 217 lines · 52 tokens per session scan A e639fa33da31
speech-generation is a skill published in the GitHub repository letta-ai/letta-code (3,935 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 2,836 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.
speech-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| speech-generationletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | A | 52 | Claude Code, Codex |
| agent-code-analyzerruvnet/ruflo | Skill | 83k | today | MIT | A | 19 | Claude Code |
| worker-integrationruvnet/ruflo | Skill | 83k | today | MIT | A | 14 | Claude Code |
| eval-dataset-designbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 138 | Claude Code, Codex |
| memory-systembojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 95 | Claude Code, Codex |
| writingbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 27 | Claude Code, Codex |
| memory-recallzilliztech/memsearch | Skill | 3.0k | 3d ago | MIT | A | 152 | Claude Code |