Letta
Letta 是 osFoundry 社区目录中的应用。拥有超越上下文窗口的持久化记忆的有状态智能体。Letta(原名 MemGPT)是自编辑记忆的标杆实现——智能体自主决定记住什么、忘掉什么、写入长期存储什么。配套 Web UI,可查看智能体状态、编辑记忆块、发送消息、观察工具调用。镜像内捆绑 Postgres + pgvector。是任何需要“跨会话持续人格”的项目的参考智能体服务器。
详情
- 工作区: osfoundry
- 分类: AI
- 价格: Free
- 访问权限: Community
功能
- Self-editing context windows — agents decide what to remember + what to forget
- Persistent memory across sessions — archival + recall stores backed by pgvector
- Built-in web UI for inspecting agent state, editing memory blocks, watching tool calls
- Multi-LLM: OpenAI, Anthropic, Google, Groq, Ollama, Together, Fireworks, custom OpenAI-compatible
- Full REST API + Python SDK — build your own UI or embed in larger applications
- Postgres + pgvector bundled in-image — no external DB to provision
文档
文档由上游项目以英文维护。
# Letta
## First-boot
The Letta web UI ships open by default — anyone with the public URL can create + control agents. **Set `SECURE=true` + `LETTA_SERVER_PASSWORD=<long random>` for any non-throwaway deployment.**
## Create your first agent
1. Open the web UI — click **+ New Agent**.
2. Pick the LLM (OpenAI / Anthropic / local).
3. Set the persona (the agent's character, e.g. 'You are Sam, a thoughtful research assistant.').
4. Set the human (what the agent should remember about you).
5. Start chatting.
## Memory model
Every agent has a self-editing context made of **core memory blocks** (always in context, edited by the agent itself):
- `persona` — who the agent is
- `human` — who the user is
- (custom blocks you define)
Plus **archival memory** (vector-indexed, the agent searches it as needed) and **recall memory** (full conversation log, also searchable). The agent decides when to write/read each store using built-in tools.
## API
Full OpenAPI server at port 8283. Drop-in for any client:
```python
from letta import RESTClient
client = RESTClient(base_url='https://<your-public-url>')
agent = client.create_agent(name='sam', persona='...', human='...')
response = client.send_message(agent_id=agent.id, message='hello')
```
## Storage
Postgres + pgvector bundled in-image. Persistent data at `/persist/pgdata`. 20 GB volume.
如何在 osFoundry 中使用 Letta
一键将 Letta 安装到您的工作区,然后在 osStudio 中将其分支,针对您的技术栈自定义提示词、工具或配置。工作区中的任何人都可以接续您的工作继续推进。
社区中的其他应用
- 客户关系管理 — 客户关系管理工具,支持联系人、交易和销售管道跟踪。
- Kanban Board — Trello 风格的看板与项目板,含卡片、面板、日历与表格视图以及每面板属性。基于 Focalboard(独立个人服务器)构建。在持久卷上内嵌 SQLite。
- 服务台 — 工单分流与客户支持收件箱,附带 SLA 跟踪。
- Page Builder — 可视化拖放页面生成器,支持区块、主题、SEO 与发布
- Website Builder — 带 CMS 合集、全局导航、页脚、主题与发布的多页面网站生成器
- 店面 — 电商店面,包含商品目录、购物车和结账流程。