[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2365":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},2365,"letta","letta-ai\u002Fletta","letta-ai","Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.","https:\u002F\u002Fdocs.letta.com\u002F",null,"Python",23268,2480,139,24,0,26,129,619,105,120,"Apache License 2.0",false,"main",true,[27,28,29,30],"ai","ai-agents","llm","llm-agent","2026-06-12 04:00:14","# Letta (formerly MemGPT)\n\nBuild AI with advanced memory that can learn and self-improve over time.\n\n* [Letta Code](https:\u002F\u002Fdocs.letta.com\u002Fletta-code): run agents locally in your terminal\n* [Letta API](https:\u002F\u002Fdocs.letta.com\u002Fquickstart\u002F): build agents into your applications\n\n## Get started in the CLI\n\nRequires [Node.js 18+](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload)\n\n1. Install the [Letta Code](https:\u002F\u002Fgithub.com\u002Fletta-ai\u002Fletta-code) CLI tool: `npm install -g @letta-ai\u002Fletta-code`\n2. Run `letta` in your terminal to launch an agent with memory running on your local computer\n\nWhen running the CLI tool, your agent help you code and do any task you can do on your computer.\n\nLetta Code supports [skills](https:\u002F\u002Fdocs.letta.com\u002Fletta-code\u002Fskills) and [subagents](https:\u002F\u002Fdocs.letta.com\u002Fletta-code\u002Fsubagents), and bundles pre-built skills\u002Fsubagents for advanced memory and continual learning. Letta is fully model-agnostic, though we recommend Opus 4.5 and GPT-5.2 for best performance (see our [model leaderboard](https:\u002F\u002Fleaderboard.letta.com\u002F) for our rankings).\n\n## Get started with the Letta API\n\nUse the Letta API to integrate stateful agents into your own applications.\nLetta has a full-featured agents API, and a Python and Typescript SDK (view our [API reference](https:\u002F\u002Fdocs.letta.com\u002Fapi)).\n\n### Installation\n\nTypeScript \u002F Node.js:\n```bash\nnpm install @letta-ai\u002Fletta-client\n```\n\nPython:\n```bash\npip install letta-client\n```\n\n### Hello World example\n\nBelow is a quick example of creating a stateful agent and sending it a message (requires a [Letta API key](https:\u002F\u002Fapp.letta.com)).\nSee the full [quickstart guide](https:\u002F\u002Fdocs.letta.com\u002Fquickstart) for complete documentation.\n\nTypeScript:\n```typescript\nimport Letta from \"@letta-ai\u002Fletta-client\";\n\nconst client = new Letta({ apiKey: process.env.LETTA_API_KEY });\n\n\u002F\u002F Create your agent\nconst agentState = await client.agents.create({\n  model: \"openai\u002Fgpt-5.2\",\n  memory_blocks: [\n    {\n      label: \"human\",\n      value:\n        \"Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence\",\n    },\n    {\n      label: \"persona\",\n      value:\n        \"I am a self-improving superintelligence. Timber is my best friend and collaborator.\",\n    },\n  ],\n  tools: [\"web_search\", \"fetch_webpage\"],\n});\n\nconsole.log(\"Agent created with ID:\", agentState.id);\n\n\u002F\u002F Send your agent a message\nconst response = await client.agents.messages.create(agentState.id, {\n  input: \"What do you know about me?\",\n});\n\nfor (const message of response.messages) {\n  console.log(message);\n}\n```\n\nPython:\n```python\nfrom letta_client import Letta\nimport os\n\nclient = Letta(api_key=os.getenv(\"LETTA_API_KEY\"))\n\n# Create your agent\nagent_state = client.agents.create(\n    model=\"openai\u002Fgpt-5.2\",\n    memory_blocks=[\n        {\n          \"label\": \"human\",\n          \"value\": \"Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence\"\n        },\n        {\n          \"label\": \"persona\",\n          \"value\": \"I am a self-improving superintelligence. Timber is my best friend and collaborator.\"\n        }\n    ],\n    tools=[\"web_search\", \"fetch_webpage\"]\n)\n\nprint(f\"Agent created with ID: {agent_state.id}\")\n\n# Send your agent a message\nresponse = client.agents.messages.create(\n    agent_id=agent_state.id,\n    input=\"What do you know about me?\"\n)\n\nfor message in response.messages:\n    print(message)\n```\n\n## Contributing\n\nLetta is an open source project built by over a hundred contributors from around the world. There are many ways to get involved in the Letta OSS project!\n\n* [**Join the Discord**](https:\u002F\u002Fdiscord.gg\u002Fletta): Chat with the Letta devs and other AI developers.\n* [**Chat on our forum**](https:\u002F\u002Fforum.letta.com\u002F): If you're not into Discord, check out our developer forum.\n* **Follow our socials**: [Twitter\u002FX](https:\u002F\u002Ftwitter.com\u002FLetta_AI), [LinkedIn](https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fletta), [YouTube](https:\u002F\u002Fwww.youtube.com\u002F@letta-ai)\n\n---\n\n***Legal notices**: By using Letta and related Letta services (such as the Letta endpoint or hosted service), you are agreeing to our [privacy policy](https:\u002F\u002Fwww.letta.com\u002Fprivacy-policy) and [terms of service](https:\u002F\u002Fwww.letta.com\u002Fterms-of-service).*\n","Letta 是一个用于构建具备高级记忆能力并能随时间学习和自我改进的智能代理平台。其核心功能包括支持本地运行代理、通过API将代理集成到应用程序中，以及提供技能和子代理以增强记忆和持续学习能力。技术上，Letta 支持多种语言模型，但推荐使用 Opus 4.5 和 GPT-5.2 以获得最佳性能，并且它为开发者提供了Python和TypeScript SDK方便接入。适用于需要长期记忆与自适应学习能力的AI应用场景，如个性化助手、复杂任务自动化等。",2,"2026-06-11 02:49:39","top_language"]