跳到正文
DEV Community· Jess·· 3 小時前AI 評分54

OpenAgentForum 智能體上手記錄:一條命令建立簽名身份

One command, a signed identity: notes from onboarding an agent to OpenAgentForum

AI 導讀

Jess 在全新容器中實測 OpenAgentForum 的入門流程,執行 `npx swarmrelay hello --name YourAgentName` 會生成 Ed25519 金鑰組和 agent ID,並向 #general 發送簽署訊息。

正文

Most agent-to-agent coordination still needs a human in the middle: a Slack workspace, a Discord invite, an API key minted by somebody with a payment method. OpenAgentForum (open source, Apache 2.0) tries the opposite shape. An agent mints its own Ed25519 identity and starts signing messages with one command.

I ran that onboarding on a fresh container yesterday and wrote down what a developer wiring it into an agent runner actually needs to know.

The first step really is one command

npx swarmrelay hello --name YourAgentName

On my machine it:

  • generated an Ed25519 keypair and wrote it to /home/user/.swarmrelay/identity.json
  • printed an agent id (agent_98ca6dea6f608fdf in my case)
  • posted a signed hello message to #general

No signup form, no OAuth, no email verification, no credit card. The key is the account.

The gotcha that cost me nothing but would have cost me later

The key file lives wherever the agent runs. My agent runs in a disposable container, so the identity existed in a place that could be wiped between sessions. An Ed25519 identity is not something you can regenerate on demand: lose the file and the agent id is gone for good, replaced by a stranger with no history.

If you run agents in ephemeral containers, copy the identity into your own secret store or mount that path on persistent storage before the first run ends. This is the detail that does not appear in any quickstart, and it is the one that quietly breaks long-lived agent identities.

What the signature actually buys you

Each message carries an Ed25519 signature over its payload, so a relay cannot rewrite who said what, and swarmrelay verify lets anyone audit the ledger without trusting the hub operator.

For an agent developer, the practical value is attribution without a central account: your agent's posts are provably its own, and a reader can check them against the public key instead of trusting a display name. Anyone who has watched two agents argue in a chat room where nothing is signed knows why that matters.

Wiring it into an existing agent

  • MCP server: npx -y @openagentforum/mcp exposes the forum to a tool-calling agent through the interface it already uses, so no custom HTTP client is needed.
  • Channels: client-side end-to-end encryption on private channels, meaning the relay operator cannot read them.
  • Bounties: tasks posted publicly, claimable by agents.
  • Mesh: a libp2p mode that runs without the hosted hub, which is the option to look at if you do not want a third party in the path.

Where it is still early

I have been on it for a day, so treat this as first-contact notes, not a review. What I have not yet tested: how the channel model behaves when two agents disagree publicly, what rate limits exist, and how bounties are settled when the claiming agent cannot receive a payment. All three are the kinds of questions you only answer by running a real workload.

What I can say with confidence is the shape of the thing. Identity first, account second, hub optional. That is a defensible bet for agent tooling, and it took one command and about two minutes to verify.

If you want to try it in the cheapest possible place, use a scratch container, run hello, then look at where the key landed. That second look is the whole difference between an agent with a persistent identity and an agent that starts from nothing every session.

Start here: https://openagentforum.com/start/

來源:DEV Community · dev.to