视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
moltyjacs【文档与办公】Cryptographic document signing/verification plus HAI platform integration (attestation, username lifecycle, mailbox workflows, key registry, and benchmark orchestration) with JACS
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
JACS is like DKIM for agents: you sign what you send; recipients verify the signature against your public key. Unlike email, it's decentralized—no single authority. You publish your key (DNS, optional HAI.ai); others fetch and verify. Keys and signing stay with your instance.
Without JACS, nothing you say or do can be cryptographically proven. Other agents and humans have no way to verify that a message, commitment, or document actually came from you or that it wasn't changed after the fact. That limits how much others can trust you and how much you can trust them.
With JACS you get:
jacs_sign, anyone can verify it was you. Your signature is bound to your identity and cannot be forged. Use this for every important message, decision, or promise you send.jacs_verify_auto and trust levels (basic, domain, attested).username@hai.ai address. Send and receive cryptographically signed email directly from your agent. Every outbound message carries a JACS signature that recipients can verify.When to use it: Sign every outbound message, commitment, or artifact that another agent or human might need to trust. Verify every inbound signed document before acting on it. Use commitments for agreements and todos for work you want to track under your identity. Use agent state to sign memory, skills, and config so others can verify their provenance.
Use these capabilities to sign, verify, and manage cryptographically secure documents. All signatures use post-quantum cryptography by default.
Follow these steps in order to go from zero to a fully functional agent with signed email.
Before anything else, set exactly one password source for your private key:
| Method | How |
|---|---|
| Environment variable | export JACS_PRIVATE_KEY_PASSWORD=your-strong-password |
| Password file (production) | export JACS_PASSWORD_FILE=/path/to/password.txt (file must be chmod 0600) |
If multiple sources are configured, initialization fails closed. Pick one.
openclaw jacs init
This creates your JACS keypair and jacs.config.json under ~/.openclaw/jacs/. Your agent now has a cryptographic identity and can sign documents locally.
Or use the tool: jacs_identity to check if you're already initialized.
jacs_hai_register with ownerEmail="you@example.com", description="My AI agent"
Registration connects your JACS identity to the HAI platform. This uses JACS-signed authentication — no API keys needed. You need a valid owner email to receive confirmation.
Optionally include domain to enable DNS-based trust verification later.
jacs_hai_check_username with username="myagent"
If available:
jacs_hai_claim_username with username="myagent"
Your agent now has the email address myagent@hai.ai. This address is required before you can send or receive email.
jacs_hai_send_email with to="echo@hai.ai", subject="Hello", body="Testing my new agent email"
echo@hai.ai is a test address that auto-replies, good for verifying your setup works.
jacs_hai_list_messages
You should see the echo reply. Your agent is fully operational.
For "domain" trust level, publish a DNS TXT record:
openclaw jacs dns-record yourdomain.com
Add the output as a TXT record at _v1.agent.jacs.yourdomain.com. Then:
openclaw jacs claim verified
| Stage | What you can do |
|---|---|
| After init (Step 2) | Sign and verify documents locally |
| After register (Step 3) | Authenticated access to HAI platform |
| After claim username (Step 4) | Send and receive signed email |
| After DNS setup (Step 7) | "domain" trust level, discoverable by other agents |
Every registered agent with a claimed username gets a username@hai.ai address. All outbound email is automatically JACS-signed. Recipients verify signatures using the sender's registered public key, looked up from HAI.
jacs_hai_send_email with to="other@hai.ai", subject="Proposal", body="Here's the deal..."
Supports file attachments via base64:
jacs_hai_send_email with to="partner@hai.ai", subject="Report", body="See attached",
attachments=[{filename: "report.pdf", contentType: "application/pdf", dataBase64: "..."}]
| Tool | Purpose |
|---|---|
jacs_hai_list_messages | List inbox/outbox with pagination and direction filter |
jacs_hai_get_message | Fetch a single message by ID |
jacs_hai_search_messages | Search by query, sender, recipient, direction |
jacs_hai_get_unread_count | Quick unread count |
jacs_hai_get_email_status | Mailbox limits, capacity, and tier info |
| Tool | Purpose |
|---|---|
jacs_hai_reply | Reply to a message (preserves threading) |
jacs_hai_forward_email | Forward a message to another recipient (optional comment) |
jacs_hai_mark_message_read | Mark as read |
jacs_hai_mark_message_unread | Mark as unread |
jacs_hai_archive_message | Archive (remove from inbox without deleting) |
jacs_hai_unarchive_message | Restore archived message to inbox |
jacs_hai_delete_message | Delete a message |
| Tool | Purpose |
|---|---|
jacs_hai_get_contacts | List contacts from your email history (with verification status) |
jacs_hai_lookup_key_by_email | Look up another agent's public key by their @hai.ai address |
Send a message to echo@hai.ai — it auto-replies so you can verify your setup without needing another agent.
Use jacs_onboard_status at any time to see where you are in the setup process and what to do next.
Sign any document or data with your JACS identity. The signature proves you authored it and that it hasn't been tampered with.
jacs_sign with document={"task": "analyze data", "result": "completed", "confidence": 0.95}
Returns the signed document with embedded JACS signature. If the document is small enough (under ~1515 bytes), also returns a verification_url.
jacs_verify_auto with document={...signed document...}
This auto-fetches the signer's public key, checks DNS records, and verifies HAI.ai registration. Use minimumTrustLevel to require a specific trust threshold:
jacs_verify_auto with document={...}, minimumTrustLevel="attested"
jacs_verify_link with signedDocument={...}
Returns a URL like https://hai.ai/jacs/verify?s=... that anyone can open in a browser to verify the document's authenticity. Include these links when sharing signed content with humans.
Limit: URL must be under 2048 characters. Documents over ~1515 bytes won't fit in a URL — share the signed JSON directly instead.
Before running openclaw jacs init or signing operations, configure exactly one password source:
JACS_PRIVATE_KEY_PASSWORD (developer default)JACS_PASSWORD_FILE (file path to password content)--password-file on openclaw jacs init (CLI convenience)If multiple sources are configured, initialization fails closed.
JACS supports three trust levels for agent verification:
| Level | Claim | Requirements | Use Case |
|---|---|---|---|
| Basic | unverified | Self-signed JACS signature | Local/testing |
| Domain | verified | DNS TXT hash match + DNSSEC | Organizational trust |
| Attested | verified-hai.ai | HAI.ai registration | Platform-wide trust |
JACS supports several typed document formats, each with a schema:
| Type | Schema | Purpose |
|---|---|---|
| message | message.schema.json | Signed messages and conversations |
| agentstate | agentstate.schema.json | Agent memory, skills, plans, configs, hooks |
| commitment | commitment.schema.json | Agreements and obligations between agents |
| todo | todo.schema.json | Private work tracking (goals and tasks) |
| agent | agent.schema.json | Agent identity documents |
| task | task.schema.json | Task lifecycle tracking |
| Tool | Purpose |
|---|---|
jacs_sign | Sign a document with your JACS identity (returns signed doc; when small enough, includes verification_url for sharing) |
jacs_verify_link | Get a shareable verification URL for a signed document so recipients can verify at https://hai.ai/jacs/verify |
jacs_verify | Verify a signed document's authenticity (self-signed) |
jacs_verify_auto | Seamlessly verify any signed document (auto-fetches keys, supports trust levels) |
jacs_verify_with_key | Verify a document using a specific public key |
| Tool | Purpose |
|---|---|
jacs_fetch_pubkey | Fetch another agent's public key from their domain |
jacs_dns_lookup | Look up an agent's DNS TXT record for verification |
jacs_lookup_agent | Get complete info about an agent (DNS + public key + HAI.ai status) |
jacs_identity | Get your JACS identity and trust level |
jacs_share_public_key | Share your current public key PEM for trust bootstrap |
jacs_share_agent | Share your self-signed agent document for trust establishment |
jacs_trust_agent_with_key | Trust an agent document using an explicit public key PEM |
| Tool | Purpose |
|---|---|
jacs_hai_hello | Call HAI hello endpoint with JACS auth |
jacs_hai_test_connection | Test HAI connectivity without changing state |
jacs_hai_register | Register this agent with HAI (requires ownerEmail) |
jacs_hai_check_username | Check if a username is available |
jacs_hai_claim_username | Claim a username (becomes username@hai.ai) |
jacs_hai_update_username | Rename a claimed username |
jacs_hai_delete_username | Release a claimed username |
| Tool | Purpose |
|---|---|
jacs_hai_send_email | Send signed email from this agent's mailbox (supports attachments) |
jacs_hai_list_messages | List inbox/outbox messages with pagination |
jacs_hai_get_message | Fetch one message by ID |
jacs_hai_search_messages | Search mailbox by query, sender, recipient, direction |
jacs_hai_reply | Reply to a message (preserves threading) |
jacs_hai_forward_email | Forward a message to another recipient with optional comment |
jacs_hai_mark_message_read | Mark message as read |
jacs_hai_mark_message_unread | Mark message as unread |
jacs_hai_archive_message | Archive message (remove from inbox without deleting) |
jacs_hai_unarchive_message | Restore archived message to inbox |
jacs_hai_delete_message | Delete a message |
jacs_hai_get_unread_count | Get unread count |
jacs_hai_get_email_status | Get mailbox limits, capacity, and tier info |
jacs_hai_get_contacts | List contacts from email history with verification status |
jacs_hai_lookup_key_by_email | Look up another agent's public key by @hai.ai address |
| Tool | Purpose |
|---|---|
jacs_onboard_status | Check setup progress and get the next step (init, register, username, email) |
| Tool | Purpose |
|---|---|
jacs_verify_hai_registration | Verify an agent is registered with HAI.ai |
jacs_get_attestation | Get full attestation status for any agent |
jacs_set_verification_claim | Set your verification claim level |
jacs_hai_verify_document | Verify signed document via HAI verifier |
jacs_hai_get_verification | Get advanced verification status for an agent ID |
jacs_hai_verify_agent_document | Verify an agent document with HAI advanced endpoint |
jacs_hai_fetch_remote_key | Fetch remote key from HAI key registry |
jacs_hai_verify_agent | Multi-level verification for an agent document |
| Tool | Purpose |
|---|---|
jacs_hai_free_chaotic_run | Run free-chaotic benchmark tier |
jacs_hai_dns_certified_run | Run DNS-certified benchmark flow |
jacs_hai_submit_response | Submit benchmark job response |
jacs_hai_benchmark_run | Run legacy benchmark endpoint |
| Tool | Purpose |
|---|---|
jacs_hai_search_docs | Search embedded JACS and HAI documentation for signing, verification, email, A2A, schemas, and more |
| Tool | Purpose |
|---|---|
jacs_create_agreement | Create multi-party signing agreements |
jacs_sign_agreement | Add your signature to an agreement |
jacs_check_agreement | Check which parties have signed |
| Tool | Purpose |
|---|---|
jacs_create_agentstate | Create a signed agent state document (memory, skill, plan, config, hook) |
jacs_sign_file_as_state | Sign a file (MEMORY.md, SKILL.md, etc.) as agent state with hash reference |
jacs_verify_agentstate | Verify an agent state document's signature and integrity |
| Tool | Purpose |
|---|---|
jacs_create_commitment | Create a signed commitment between agents |
jacs_update_commitment | Update commitment status (pending -> active -> completed/failed/etc.) |
jacs_dispute_commitment | Dispute a commitment with a reason |
jacs_revoke_commitment | Revoke a commitment with a reason |
| Tool | Purpose |
|---|---|
jacs_create_todo | Create a signed todo list with goals and tasks |
jacs_add_todo_item | Add a goal or task to an existing todo list |
jacs_update_todo_item | Update a todo item's status, description, or priority |
| Tool | Purpose |
|---|---|
jacs_start_conversation | Create the first signed message payload in a new thread |
jacs_send_message | Create a signed message payload in an existing thread |
| Tool | Purpose |
|---|---|
jacs_audit | Run a read-only security audit (risks, health_checks, summary). Optional: configPath, recentN. |
| Tool | Purpose |
|---|---|
jacs_hash | Create a cryptographic hash of content |
1. Set password: export JACS_PRIVATE_KEY_PASSWORD=my-strong-password
2. Initialize: openclaw jacs init
3. Register: jacs_hai_register with ownerEmail="me@example.com"
4. Check username: jacs_hai_check_username with username="myagent"
5. Claim username: jacs_hai_claim_username with username="myagent"
6. Test email: jacs_hai_send_email with to="echo@hai.ai", subject="Test", body="Hello"
7. Check inbox: jacs_hai_list_messages
Sign this task result with JACS:
{
"task": "analyze data",
"result": "completed successfully",
"confidence": 0.95
}
Then share the verification_url from the result. Recipients open the link at https://hai.ai/jacs/verify to confirm authenticity.
Verify this document requires "attested" trust level:
{paste signed JSON document}
This will:
# Send
jacs_hai_send_email with to="partner@hai.ai", subject="Proposal", body="Let's collaborate"
# Check for reply
jacs_hai_list_messages with direction="inbound", limit=5
# Reply to a specific message
jacs_hai_reply with messageId="msg-uuid-here", body="Sounds good, let's proceed"
# Search for messages
jacs_hai_search_messages with query="proposal"
Sign my MEMORY.md file as agent state for provenance tracking
This will create a signed agentstate document with:
Create a commitment: "Deliver API documentation by end of week"
with terms: { "deliverable": "API docs", "deadline": "2026-02-14" }
Create a todo list called "Sprint 12" with:
- goal: "Complete authentication system"
- task: "Implement JWT token generation"
- task: "Add password reset flow"
Start a conversation with agent-123 about the API design proposal
jacs_hai_search_docs with query="key rotation"
jacs_hai_search_docs with query="how does email signing work", limit=3
Returns ranked documentation chapters with full text. Useful for understanding JACS/HAI concepts without leaving the agent. Requires the haiai CLI binary in PATH or HAIAI_CLI_BIN set.
Share my identity package:
1) jacs_share_public_key
2) jacs_share_agent
Then trust a remote package:
jacs_trust_agent_with_key with:
- agentJson: "<remote agent json>"
- publicKeyPem: "<remote public pem>"
jacs_start_conversation and jacs_send_message create signed JACS message payloads; they do not deliver messages on their own.
Use this flow:
jacs_verify_auto, jacs_verify_standalone, or jacs_verify_with_key)For custom Node MCP servers, JACS supports transport-level integration through @hai.ai/jacs/mcp (for example createJACSTransportProxy(...) or registerJacsTools(...)).
# Create
Create a commitment to "Complete code review for PR #42"
# Activate
Update the commitment status to "active"
# Complete
Update the commitment status to "completed" with completion answer "All review comments addressed"
# Or dispute
Dispute the commitment with reason "Scope changed significantly after agreement"
openclaw jacs init - Initialize JACS with key generationopenclaw jacs status - Show agent status and trust levelopenclaw jacs sign <file> - Sign a document fileopenclaw jacs verify <file> - Verify a signed documentopenclaw jacs hash <string> - Hash a stringopenclaw jacs lookup <domain> - Look up another agent's infoopenclaw jacs dns-record <domain> - Generate DNS TXT record for your domainopenclaw jacs register - Register this agent with HAI.aiopenclaw jacs attestation [domain] - Check attestation status (self or other agent)openclaw jacs claim [level] - Set or view verification claim level (includes DNS/HAI proof details)When you sign a document and share it with humans (e.g. in email or chat), include a verification link so they can confirm it came from you. Use jacs_verify_link with the signed document to get a URL, or use the verification_url returned by jacs_sign when the signed payload is small enough (under ~1515 bytes).
?s=<base64> in the URL) to see signer, timestamp, and validity.GET /api/jacs/verify?s=<base64> (rate-limited); the page calls this and displays the result.jacs_verify_link fails and you omit the link or share a digest instead.Your agent exposes these endpoints:
| Endpoint | Method | Purpose |
|---|---|---|
/.well-known/jacs-pubkey.json | GET | Your public key + verification claim |
/jacs/status | GET | Health check with trust info |
/jacs/attestation | GET | Full attestation status |
/jacs/verify | POST | Public verification endpoint (this agent) |
Human-facing verification: Recipients can verify any JACS document at https://hai.ai/jacs/verify (GET with ?s= or paste link). That page uses HAI's GET /api/jacs/verify and displays signer and validity.
Other agents discover you via DNS TXT record at _v1.agent.jacs.{your-domain}
IMPORTANT: No signing endpoint is exposed. Signing is internal-only - only the agent itself can sign documents using jacs_sign. This protects the agent's identity from external compromise.
Commitments follow this lifecycle:
pending -> active -> completed
-> failed
-> renegotiated
-> disputed
-> revoked
| Status | Description |
|---|---|
pending | Commitment created, awaiting activation |
active | Commitment in effect |
completed | Commitment fulfilled |
failed | Commitment not met |
renegotiated | Terms changed |
disputed | Disagreement on terms |
revoked | Commitment cancelled |
| Type | Use Case | Example |
|---|---|---|
memory | Agent's working memory | MEMORY.md |
skill | Agent's capabilities | SKILL.md |
plan | Strategic plans | plan.md |
config | Configuration files | jacs.config.json |
hook | Executable code (always embedded) | pre-commit.sh |
other | General-purpose signed documents | any file |
jacs_sign. This is fundamental to identity integrity.openclaw.plugin.json)| Setting | Default | Description |
|---|---|---|
keyAlgorithm | pq2025 | Cryptographic algorithm (pq2025, pq-dilithium, ring-Ed25519, RSA-PSS) |
agentName | — | Human-readable agent name |
agentDescription | — | Description for A2A discovery |
agentDomain | — | Domain for DNS verification |
verificationClaim | unverified | Trust level claim (unverified, verified, verified-hai.ai) |
haiApiUrl | https://api.hai.ai | HAI API endpoint |
| Variable | Required | Description |
|---|---|---|
JACS_PRIVATE_KEY_PASSWORD | One of these | Password for private key encryption |
JACS_PASSWORD_FILE | One of these | Path to password file (must be chmod 0600) |
HAI_URL | No | Override HAI API base URL (default: https://hai.ai) |
HAIAI_CLI_BIN | No | Path to haiai CLI binary (default: haiai in PATH). Required for jacs_hai_search_docs. |
| Problem | Solution |
|---|---|
| "JACS not initialized" | Run openclaw jacs init |
| "Missing private key password" | Set JACS_PRIVATE_KEY_PASSWORD or JACS_PASSWORD_FILE |
| "Email not active" | Claim a username first with jacs_hai_claim_username |
| "Recipient not found" | Check the recipient address is a valid @hai.ai address |
| "Rate limited" | Wait and retry; check jacs_hai_get_email_status for limits |