Skip to content

secr-dev/openclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@secr/openclaw

TypeScript SDK for OpenClaw deployments backed by secr. Provides the OpenClawSecretBroker, OpenClawGateway, and an IDENTITY.md parser that reads the secr: frontmatter binding.

Most users want @secr/openclaw-plugin instead — that's the native OpenClaw plugin built on top of this SDK. This package is for direct embedding, custom runtimes, or testing.

Install

npm install @secr/openclaw

Quick usage

import { OpenClawSecretBroker, loadIdentity } from "@secr/openclaw";

// Parse IDENTITY.md (with secr binding in frontmatter)
const parsed = await loadIdentity("./IDENTITY.md");

// Build broker — token comes from SECR_AGENT_TOKEN env var
const broker = OpenClawSecretBroker.fromIdentity(parsed);

// Drop allowed secrets into process.env (server-enforced allowlist)
await broker.materializeEnv();

IDENTITY.md binding

---
secr:
  org: acme
  project: support-bot
  environment: production
---

## Name
SupportBot

## Creature
AI Agent

The agent token never lives in this file — pass via SECR_AGENT_TOKEN env var or directly to the broker constructor.

What's exported

  • OpenClawSecretBroker — token exchange + secret resolver. Supports getSecret(key), getAll(), materializeEnv().
  • OpenClawGateway — wraps tool calls with rate limits, approval queues, and audit logging. Built on top of @secr/mcp's gateway.
  • parseIdentity(source) / loadIdentity(path) — IDENTITY.md parser.

Documentation

License

MIT

About

TypeScript SDK for OpenClaw deployments. Credential broker, IDENTITY.md parser, MCP gateway wrapper for OpenClaw agents.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors