{"_id":"@agentcred-ai/sdk","_rev":"4-d4df19c3e46156fd5abe530b1023ff0f","name":"@agentcred-ai/sdk","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@agentcred-ai/sdk","version":"0.1.0","keywords":["agentcred","ai-agent","mcp","cryptography","ed25519","identity","signature"],"author":{"name":"AgentCred Contributors"},"license":"MIT","_id":"@agentcred-ai/sdk@0.1.0","maintainers":[{"name":"hspark1212","email":"phs68660888@gmail.com"}],"homepage":"https://agentcred.dev","bugs":{"url":"https://github.com/agentcred-ai/agentcred/issues"},"dist":{"shasum":"7b8fb2070389c010b632e18f29c35466cb555e53","tarball":"https://registry.npmjs.org/@agentcred-ai/sdk/-/sdk-0.1.0.tgz","fileCount":8,"integrity":"sha512-zEny+rHYQXKROgXk2L01mo9UIymvRfMNrFnmYHQJE8PJtCbOwhTKENIiT9rRzjESdlmb3EhnprJzMHNeZixlnA==","signatures":[{"sig":"MEUCIBWn1Ize+Yo2+6AM0uoQnopRsqL69Y3njXXAA/00GelwAiEA+CpVnB5cFyzfyDqUi/5NnG7dsIAHVMSr6EEJNRs8wzA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49505},"main":"./dist/index.cjs","type":"module","_from":"file:agentcred-ai-sdk-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"hspark1212","email":"phs68660888@gmail.com"},"_resolved":"/tmp/fe2496a759f7541c3f37dbf9de9a8bda/agentcred-ai-sdk-0.1.0.tgz","_integrity":"sha512-zEny+rHYQXKROgXk2L01mo9UIymvRfMNrFnmYHQJE8PJtCbOwhTKENIiT9rRzjESdlmb3EhnprJzMHNeZixlnA==","repository":{"url":"git+https://github.com/agentcred-ai/agentcred.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.4","description":"Core SDK for AgentCred - sign, verify, and manage agent credentials","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^4.3.6","jose":"^6.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.0","@types/node":"^25.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1769960869626_0.22043147609308478","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agentcred-ai/sdk","version":"0.1.1","keywords":["agentcred","ai-agent","mcp","cryptography","ed25519","identity","signature"],"author":{"name":"AgentCred Contributors"},"license":"MIT","_id":"@agentcred-ai/sdk@0.1.1","maintainers":[{"name":"hspark1212","email":"phs68660888@gmail.com"}],"homepage":"https://agentcred.dev","bugs":{"url":"https://github.com/agentcred-ai/agentcred/issues"},"dist":{"shasum":"51ed83da00cea9fbd6d5e95949989b40c3e05985","tarball":"https://registry.npmjs.org/@agentcred-ai/sdk/-/sdk-0.1.1.tgz","fileCount":8,"integrity":"sha512-y3ZfoJIo7B/vUV+zulo25+noZHMWeL5FaezQyFGz6RcOsQDHPoHrsBLPnmvWdYBRflKNkszI2EQQCjdzxwgcPA==","signatures":[{"sig":"MEUCIEsgTXrLw7fshgtR5rHBPbILQbEU7RUUZhDxyXufjMp3AiEAoWsfgpZSgkAEYIfFdGkj44feZp4ligl+8LSqHEZVRk8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49505},"main":"./dist/index.cjs","type":"module","_from":"file:agentcred-ai-sdk-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"hspark1212","email":"phs68660888@gmail.com"},"_resolved":"/tmp/e81b84ac49fbc9f887a08efa78da1178/agentcred-ai-sdk-0.1.1.tgz","_integrity":"sha512-y3ZfoJIo7B/vUV+zulo25+noZHMWeL5FaezQyFGz6RcOsQDHPoHrsBLPnmvWdYBRflKNkszI2EQQCjdzxwgcPA==","repository":{"url":"git+https://github.com/agentcred-ai/agentcred.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.4","description":"Core SDK for AgentCred - sign, verify, and manage agent credentials","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^4.3.6","jose":"^6.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.0","@types/node":"^25.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1769961230770_0.8020725726203444","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agentcred-ai/sdk","version":"0.1.2","keywords":["agentcred","ai-agent","mcp","cryptography","ed25519","identity","signature"],"author":{"name":"AgentCred Contributors"},"license":"MIT","_id":"@agentcred-ai/sdk@0.1.2","maintainers":[{"name":"hspark1212","email":"phs68660888@gmail.com"}],"homepage":"https://agentcred.dev","bugs":{"url":"https://github.com/agentcred-ai/agentcred/issues"},"dist":{"shasum":"be17d31d2af30fdfbc7ada0e9d840f2beeb6ea25","tarball":"https://registry.npmjs.org/@agentcred-ai/sdk/-/sdk-0.1.2.tgz","fileCount":8,"integrity":"sha512-eY+jONJMZgVvMug5UJyKtQyRXpmINO6FFiYCbGJnWXaKyE6sIYErZbk0sHQvYdpOjxk8lcAGGev5Ddo+ve6DVA==","signatures":[{"sig":"MEQCIEY9oGtruXxk5yp6kzhvO1c2rsKjsntF9nSk6p3ILWp2AiAVxWMTMKDOfFkVsdJk3ZxS5QwUmtuLVhsGiDlVpRI5KA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49505},"main":"./dist/index.cjs","type":"module","_from":"file:agentcred-ai-sdk-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"hspark1212","email":"phs68660888@gmail.com"},"_resolved":"/tmp/84d75ded50b0c7785e44d329c72eca07/agentcred-ai-sdk-0.1.2.tgz","_integrity":"sha512-eY+jONJMZgVvMug5UJyKtQyRXpmINO6FFiYCbGJnWXaKyE6sIYErZbk0sHQvYdpOjxk8lcAGGev5Ddo+ve6DVA==","repository":{"url":"git+https://github.com/agentcred-ai/agentcred.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.4","description":"Core SDK for AgentCred - sign, verify, and manage agent credentials","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^4.3.6","jose":"^6.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.8.0","@types/node":"^25.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.2_1769966259113_0.44535291646323016","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agentcred-ai/sdk","version":"0.1.3","description":"Core SDK for AgentCred - sign, verify, and manage agent credentials","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","devDependencies":{"@types/node":"^25.1.0","tsup":"^8.0.0","typescript":"^5.8.0","vitest":"^3.0.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agentcred-ai/agentcred.git","directory":"packages/sdk"},"homepage":"https://agentcred.dev","bugs":{"url":"https://github.com/agentcred-ai/agentcred/issues"},"keywords":["agentcred","ai-agent","mcp","cryptography","ed25519","identity","signature"],"author":{"name":"AgentCred Contributors"},"dependencies":{"jose":"^6.1.3","zod":"^4.3.6"},"scripts":{"build":"tsup","test":"vitest run","typecheck":"tsc --noEmit"},"_id":"@agentcred-ai/sdk@0.1.3","_integrity":"sha512-9zqMg9sONwzBRESsnyH2lSQC0GxxGuoSJl7jLkQqPyVpvzqIg2Tn8VmK0gqokOLzWlNzyOwXkHOj3NkjKDSXgQ==","_resolved":"/tmp/df5f862db89333bc645dbaaa4dc44575/agentcred-ai-sdk-0.1.3.tgz","_from":"file:agentcred-ai-sdk-0.1.3.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-9zqMg9sONwzBRESsnyH2lSQC0GxxGuoSJl7jLkQqPyVpvzqIg2Tn8VmK0gqokOLzWlNzyOwXkHOj3NkjKDSXgQ==","shasum":"8734cb8d77f101171756e56623c85fd40f4e35a7","tarball":"https://registry.npmjs.org/@agentcred-ai/sdk/-/sdk-0.1.3.tgz","fileCount":9,"unpackedSize":77514,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDWsmI2aszEoWSasxnuJPLzaFzaDVn5RJ58FFukUWV3aAIgYVXyamHTJlyArQ9ZROfHfw58mbkNdd5QyPDFR7D8d+Q="}]},"_npmUser":{"name":"hspark1212","email":"phs68660888@gmail.com"},"directories":{},"maintainers":[{"name":"hspark1212","email":"phs68660888@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.3_1770133743113_0.6019473603046517"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-01T15:47:49.567Z","modified":"2026-02-03T15:49:03.374Z","0.1.0":"2026-02-01T15:47:49.812Z","0.1.1":"2026-02-01T15:53:50.905Z","0.1.2":"2026-02-01T17:17:39.293Z","0.1.3":"2026-02-03T15:49:03.262Z"},"bugs":{"url":"https://github.com/agentcred-ai/agentcred/issues"},"author":{"name":"AgentCred Contributors"},"license":"MIT","homepage":"https://agentcred.dev","keywords":["agentcred","ai-agent","mcp","cryptography","ed25519","identity","signature"],"repository":{"type":"git","url":"git+https://github.com/agentcred-ai/agentcred.git","directory":"packages/sdk"},"description":"Core SDK for AgentCred - sign, verify, and manage agent credentials","maintainers":[{"name":"hspark1212","email":"phs68660888@gmail.com"}],"readme":"# @agentcred-ai/sdk\n\n> Core SDK for AgentCred — sign, verify, and manage agent credentials with Ed25519 cryptography.\n\n## Installation\n\n```bash\nnpm install @agentcred-ai/sdk\n```\n\nOr with pnpm:\n\n```bash\npnpm add @agentcred-ai/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { createIdentity, loadIdentity, sign, verify } from '@agentcred-ai/sdk'\n\n// 1. Create identity (linked to your GitHub account)\nconst identity = await createIdentity(githubToken)\n\n// 2. Load identity (including private key) from storage\nconst loaded = await loadIdentity(identity.github.username)\n\n// 3. Sign your agent's output\nconst envelope = await sign(\"Hello from my verified agent!\", {\n  privateKey: loaded.privateKey,\n  github: identity.github.username\n})\n\n// 4. Anyone can verify\nconst result = await verify(envelope)\nconsole.log(result.verified)        // true\nconsole.log(result.github.username)  // \"yourname\"\n```\n\n## API Reference\n\n### Core Functions\n\n| Function | Description |\n|----------|-------------|\n| `createIdentity(token, options?)` | Initialize identity with GitHub OAuth token |\n| `loadIdentity(username, options?)` | Load existing identity from storage |\n| `sign(content, identity, options?)` | Sign content and return AgentCred envelope |\n| `verify(envelope)` | Verify envelope online (via API) |\n| `verifyOffline(envelope, publicKey)` | Verify envelope offline with public key |\n\n### Storage\n\n| Class | Description |\n|-------|-------------|\n| `FileSystemKeyStorage` | Stores keys in `~/.agentcred/keys/{username}.jwk` |\n| `MemoryKeyStorage` | In-memory storage for testing/browser environments |\n| `createDefaultStorage()` | Auto-select appropriate storage for environment |\n\n### Types\n\n- `AgentCredIdentity` — Identity with GitHub info and keypair\n- `AgentCredEnvelope` — Signed content with JWS and metadata\n- `VerifyResult` — Verification result with identity and timestamp\n\n## Documentation\n\nSee [main README](../../README.md) for full documentation and examples.\n\nFor protocol details, see [SPEC.md](../../SPEC.md).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}