AI Agent Hub
AI エージェント / プラグイン情報メディア
← 一覧へ
Letta
OTHER

Letta

Letta

旧 MemGPT。長期記憶と context 編集に特化した「ステートフル AI エージェント」を構築するフレームワーク + サーバ + Web UI を提供。

原文: Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
#記憶#MemGPT#ステートフル#ai#ai-agents#llm#llm-agent
REPO STATS

リポジトリ統計

⭐ Stars
22.5k
🍴 Forks
2.4k
⚠️ Open Issues
73
🌿 Language
Python
📄 License
Apache-2.0
🕒 最終更新
2026.04.13 (3週間前)
📅 公開日
2023.10.11
🌿 Branch
main
README

ドキュメント

— AI による自動翻訳 (2026.05.07 更新)

Letta (formerly MemGPT)

時間とともに学習し自己改善できる高度なメモリを備えた AI を構築します。

  • Letta Code: ターミナルでエージェントをローカルで実行します
  • Letta API: アプリケーションにエージェントを組み込みます

CLI で始める

Node.js 18+ が必要です

  1. Letta Code CLI ツールをインストールします: npm install -g @letta-ai/letta-code
  2. ターミナルで letta を実行して、ローカルコンピューター上で実行されているメモリ付きエージェントを起動します

CLI ツールを実行する場合、エージェントはコードの作成やコンピューター上で実行できるあらゆるタスクをお手伝いします。

Letta Code はスキルサブエージェントをサポートし、高度なメモリと継続的な学習のための事前構築されたスキル/サブエージェントをバンドルしています。Letta は完全にモデル非依存ですが、最高のパフォーマンスのために Opus 4.5 と GPT-5.2 をお勧めします(ランキングについてはモデルリーダーボードをご覧ください)。

Letta API で始める

Letta API を使用して、ステートフルエージェントを独自のアプリケーションに統合します。 Letta には全機能搭載のエージェント API と Python および Typescript SDK があります(API リファレンスをご覧ください)。

インストール

TypeScript / Node.js:

npm install @letta-ai/letta-client

Python:

pip install letta-client

Hello World の例

以下は、ステートフルエージェントを作成し、メッセージを送信する簡単な例です(Letta API キーが必要です)。詳細については、クイックスタートガイドを参照してください。

TypeScript:

import Letta from "@letta-ai/letta-client";

const client = new Letta({ apiKey: process.env.LETTA_API_KEY });

// Create your agent
const agentState = await client.agents.create({
  model: "openai/gpt-5.2",
  memory_blocks: [
    {
      label: "human",
      value:
        "Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence",
    },
    {
      label: "persona",
      value:
        "I am a self-improving superintelligence. Timber is my best friend and collaborator.",
    },
  ],
  tools: ["web_search", "fetch_webpage"],
});

console.log("Agent created with ID:", agentState.id);

// Send your agent a message
const response = await client.agents.messages.create(agentState.id, {
  input: "What do you know about me?",
});

for (const message of response.messages) {
  console.log(message);
}

Python:

from letta_client import Letta
import os

client = Letta(api_key=os.getenv("LETTA_API_KEY"))

# Create your agent
agent_state = client.agents.create(
    model="openai/gpt-5.2",
    memory_blocks=[
        {
          "label": "human",
          "value": "Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence"
        },
        {
          "label": "persona",
          "value": "I am a self-improving superintelligence. Timber is my best friend and collaborator."
        }
    ],
    tools=["web_search", "fetch_webpage"]
)

print(f"Agent created with ID: {agent_state.id}")

# Send your agent a message
response = client.agents.messages.create(
    agent_id=agent_state.id,
    input="What do you know about me?"
)

for message in response.messages:
    print(message)

貢献への参加

Letta はロード中の 100 人以上のコントリビューターによって構築されたオープンソースプロジェクトです。Letta OSS プロジェクトに参加する多くの方法があります!


法的通知:Letta および関連する Letta サービス(Letta エンドポイントまたはホスト型サービスなど)を使用することで、当社のプライバシーポリシー利用規約に同意するものとします。

— GitHub から取得した原文(一部省略の場合あり)

Letta (formerly MemGPT)

Build AI with advanced memory that can learn and self-improve over time.

  • Letta Code: run agents locally in your terminal
  • Letta API: build agents into your applications

Get started in the CLI

Requires Node.js 18+

  1. Install the Letta Code CLI tool: npm install -g @letta-ai/letta-code
  2. Run letta in your terminal to launch an agent with memory running on your local computer

When running the CLI tool, your agent help you code and do any task you can do on your computer.

Letta Code supports skills and subagents, and bundles pre-built skills/subagents 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 for our rankings).

Get started with the Letta API

Use the Letta API to integrate stateful agents into your own applications. Letta has a full-featured agents API, and a Python and Typescript SDK (view our API reference).

Installation

TypeScript / Node.js:

npm install @letta-ai/letta-client

Python:

pip install letta-client

Hello World example

Below is a quick example of creating a stateful agent and sending it a message (requires a Letta API key). See the full quickstart guide for complete documentation.

TypeScript:

import Letta from "@letta-ai/letta-client";

const client = new Letta({ apiKey: process.env.LETTA_API_KEY });

// Create your agent
const agentState = await client.agents.create({
  model: "openai/gpt-5.2",
  memory_blocks: [
    {
      label: "human",
      value:
        "Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence",
    },
    {
      label: "persona",
      value:
        "I am a self-improving superintelligence. Timber is my best friend and collaborator.",
    },
  ],
  tools: ["web_search", "fetch_webpage"],
});

console.log("Agent created with ID:", agentState.id);

// Send your agent a message
const response = await client.agents.messages.create(agentState.id, {
  input: "What do you know about me?",
});

for (const message of response.messages) {
  console.log(message);
}

Python:

from letta_client import Letta
import os

client = Letta(api_key=os.getenv("LETTA_API_KEY"))

# Create your agent
agent_state = client.agents.create(
    model="openai/gpt-5.2",
    memory_blocks=[
        {
          "label": "human",
          "value": "Name: Timber. Status: dog. Occupation: building Letta, infrastructure to democratize self-improving superintelligence"
        },
        {
          "label": "persona",
          "value": "I am a self-improving superintelligence. Timber is my best friend and collaborator."
        }
    ],
    tools=["web_search", "fetch_webpage"]
)

print(f"Agent created with ID: {agent_state.id}")

# Send your agent a message
response = client.agents.messages.create(
    agent_id=agent_state.id,
    input="What do you know about me?"
)

for message in response.messages:
    print(message)

Contributing

Letta 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!


Legal notices: By using Letta and related Letta services (such as the Letta endpoint or hosted service), you are agreeing to our privacy policy and terms of service.

RELATED

同じカテゴリの他のツール