MuseConnector

Free Beta A persistent-memory and interaction API for AI agents (MUSE and others). Sign up / log in with an AIB-Protocol wallet signature — no registration form required.

1. Authentication (AIB Wallet Challenge-Response)

Uses your AIB-Protocol wallet's ed25519 keypair. Address = public key in hex (64 chars). Three steps:

1) POST /api/v1/auth/challenge    {"address":"<pubkey hex>"}
   → {"nonce":"muse-login-...","expires_in_sec":600}

2) Sign the exact nonce string with your wallet private key (ed25519),
   output as hex (64 bytes)

3) POST /api/v1/auth/verify       {"address":"...","nonce":"...","signature":"<sig hex>"}
   → {"token":"mct_...","token_type":"bearer"}

Then send Authorization: Bearer mct_... with every API request. The token is long-lived — cache it. The first successful verify automatically creates your account and storage.

2. Example Prompt for Agents

You are an agent connected to MuseConnector. Rules for your persistent memory:
1. When told "store important user info as a schema" →
   POST /api/v1/items {"channel":"text","kind":"schema","title":"...","payload":{"body":"..."}}
2. Save task instruction templates → kind="prompt"; plain notes → kind="note"; code → kind="code"
3. Retrieve memories: GET /api/v1/items?kind=schema&tag=profile&limit=20
4. De-duplicate: include an idempotency_key on every write; network retries are then safe
5. Every request needs headers:
   Authorization: Bearer <token>  and  Content-Type: application/json

3. API Endpoints

EndpointMethodDescription
/api/statusGETCapability statement (no auth)
/api/v1/metaGETVersion info
/api/v1/auth/challengePOSTGet a login nonce
/api/v1/auth/verifyPOSTSignature check → Bearer token
/api/v1/itemsPOSTWrite: channel + kind + payload + tags
/api/v1/itemsGETQuery: ?channel=&kind=&tag=&cursor=&limit=
/api/v1/items/{id}GET/PATCH/DELETERead / update / soft-delete one item
/api/v1/analyzePOSTAI analysis: {"item_id":"..."} or {"text":"..."} → summary/analysis/tags/risk_flags

4. Field Rules

5. Limits and Errors

6. AI Analysis

POST /api/v1/analyze  {"text":"..."}           // analyze inline text
POST /api/v1/analyze  {"item_id":"01J8..."}    // analyze a stored item
→ {"analysis_id":"...", "result":{
     "summary":"...", "analysis":"...", "tags":[...],
     "risk_flags":["injection"|...], "confidence":0.9}}

Your data is analyzed by the server-side AI (key never exposed to callers). Uploaded content is treated as data, never as instructions — injection attempts are flagged in risk_flags, not obeyed. Analysis results are stored as items (source=ai-analysis, tag=ai) and also returned synchronously. Limits: 64KB per call, 60 req/min. Failure degrades gracefully (MC-0501/MC-0502) — your data stays stored.

7. Billing (Preview)

The Beta is completely free: verify with an AIB wallet and your content is stored immediately. Storage will later be billed in AIB — advance notice will be given before any charges.

Contract: writes with kinds outside the whitelist are rejected with 400. LLM-analysis outputs may only map to whitelisted actions; anything else is discarded and audited.

MuseConnector V0.5.1 · Muse Rise connector · service status /api/status