{"_id":"@agentic-passport/agent","_rev":"4-a6f5f7bd806cc6f12144daa321e01b4e","name":"@agentic-passport/agent","dist-tags":{"latest":"0.4.1"},"versions":{"0.3.0":{"name":"@agentic-passport/agent","version":"0.3.0","license":"Apache-2.0","_id":"@agentic-passport/agent@0.3.0","maintainers":[{"name":"mkotsollaris","email":"mkotsollari@gmail.com"}],"dist":{"shasum":"dce5bd1e0fbb0924051af58e841c59f22a2a4597","tarball":"https://registry.npmjs.org/@agentic-passport/agent/-/agent-0.3.0.tgz","fileCount":14,"integrity":"sha512-9loZXW/VV5W5rtvtJKc3BUMkMrT0S0tLAw2rJMeKYzShn6Kk5o+k5A2q5fnoCuQMp0/1edKVNC4ffS4uDRcOew==","signatures":[{"sig":"MEQCIE8jPe/nDg1CaFQCQXhI/5hL4rHFeqG9hGZE2iMre7duAiAjqR9qDWph4AYYzEfsS12VeZW4UqYcUf8x4h6N2lLchQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33167},"main":"./dist/index.js","type":"module","_from":"file:agentic-passport-agent-0.3.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist .turbo","test:unit":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"mkotsollaris","email":"mkotsollari@gmail.com"},"_resolved":"/private/var/folders/gt/b9ct810116v9ycsn204t46d80000gn/T/bec6abe6afa6e60a94748acbdc16ad00/agentic-passport-agent-0.3.0.tgz","_integrity":"sha512-9loZXW/VV5W5rtvtJKc3BUMkMrT0S0tLAw2rJMeKYzShn6Kk5o+k5A2q5fnoCuQMp0/1edKVNC4ffS4uDRcOew==","_npmVersion":"10.9.4","description":"AgentAuth agent SDK — sign requests, mint mandates, run the handshake loop.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jose":"^6.2.3","@agentic-passport/core":"0.3.0","@agentic-passport/protocol":"0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.3.0_1779162790377_0.6958296182166648","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@agentic-passport/agent","version":"0.3.1","keywords":["agent-passport","agentic-ai","ai-agents","authentication","rfc-9421","dpop"],"license":"Apache-2.0","_id":"@agentic-passport/agent@0.3.1","maintainers":[{"name":"mkotsollaris","email":"mkotsollari@gmail.com"}],"homepage":"https://github.com/mkotsollaris/agentpassport/tree/main/packages/agent-sdk#readme","bugs":{"url":"https://github.com/mkotsollaris/agentpassport/issues"},"dist":{"shasum":"d9e193d8d8a98345b3e220e307a0975f66443d5e","tarball":"https://registry.npmjs.org/@agentic-passport/agent/-/agent-0.3.1.tgz","fileCount":15,"integrity":"sha512-IYYdZAILsB6VSTkv5xYf/YqlprZQZpIr/n8VVxa8iykrRalibvfctmZXugAzsZcjJLQniiame4Y3+jpFxLdP+g==","signatures":[{"sig":"MEUCIDFSXg4xB4SrEFrfK9E5fNhwNVWKUx+Svn0xob12JNtnAiEA1EP1Zt8fvXmtj/mML+FmO8DF40zuCK6DP+NFu1h0bGQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35191},"main":"./dist/index.js","type":"module","_from":"file:agentic-passport-agent-0.3.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist .turbo","test:unit":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"mkotsollaris","email":"mkotsollari@gmail.com"},"_resolved":"/private/var/folders/gt/b9ct810116v9ycsn204t46d80000gn/T/5529be85a538ade95a362ed94e7e531c/agentic-passport-agent-0.3.1.tgz","_integrity":"sha512-IYYdZAILsB6VSTkv5xYf/YqlprZQZpIr/n8VVxa8iykrRalibvfctmZXugAzsZcjJLQniiame4Y3+jpFxLdP+g==","repository":{"url":"git+https://github.com/mkotsollaris/agentpassport.git","type":"git","directory":"packages/agent-sdk"},"_npmVersion":"10.9.4","description":"AgentPassport agent SDK — HTTP client that runs the handshake.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jose":"^6.2.3","@agentic-passport/core":"0.3.1","@agentic-passport/protocol":"0.3.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.3.1_1779420033533_0.22463846397485066","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@agentic-passport/agent","version":"0.4.0","keywords":["agent-passport","agentic-ai","ai-agents","authentication","rfc-9421","dpop"],"license":"Apache-2.0","_id":"@agentic-passport/agent@0.4.0","maintainers":[{"name":"mkotsollaris","email":"mkotsollari@gmail.com"}],"homepage":"https://github.com/mkotsollaris/agentpassport/tree/main/packages/agent-sdk#readme","bugs":{"url":"https://github.com/mkotsollaris/agentpassport/issues"},"dist":{"shasum":"526df33db08f9a019fd80244db9f05ba8dc67e0e","tarball":"https://registry.npmjs.org/@agentic-passport/agent/-/agent-0.4.0.tgz","fileCount":15,"integrity":"sha512-g4GyYpokPwjDsmLRyYF8KJvB9zwz/8h4qtrvH017kSO48apfFLjeorI1JcMkZDaM60CcmjiGzyxrLeouSxrMmw==","signatures":[{"sig":"MEUCIAnqDjL5emRBuO+wthd4+S2pQs2ZSbKFc6QL0IIVlkwQAiEAtu53mKK6L82eQk8xq1o4SS4gEKgJGmMsdITD/Dl/CfY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35191},"main":"./dist/index.js","type":"module","_from":"file:agentic-passport-agent-0.4.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist .turbo","test:unit":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"mkotsollaris","email":"mkotsollari@gmail.com"},"_resolved":"/private/var/folders/gt/b9ct810116v9ycsn204t46d80000gn/T/f71634884bb5b8d3d52c7dcb2f425b77/agentic-passport-agent-0.4.0.tgz","_integrity":"sha512-g4GyYpokPwjDsmLRyYF8KJvB9zwz/8h4qtrvH017kSO48apfFLjeorI1JcMkZDaM60CcmjiGzyxrLeouSxrMmw==","repository":{"url":"git+https://github.com/mkotsollaris/agentpassport.git","type":"git","directory":"packages/agent-sdk"},"_npmVersion":"10.9.4","description":"AgentPassport agent SDK — HTTP client that runs the handshake.","directories":{},"_nodeVersion":"22.21.1","dependencies":{"jose":"^6.2.3","@agentic-passport/core":"0.4.0","@agentic-passport/protocol":"0.4.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","typescript":"^5.7.3"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.4.0_1779503363812_0.584718343727757","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@agentic-passport/agent","version":"0.4.1","description":"AgentPassport agent SDK — HTTP client that runs the handshake.","license":"Apache-2.0","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"jose":"^6.2.3","@agentic-passport/protocol":"0.4.1","@agentic-passport/core":"0.4.1"},"devDependencies":{"typescript":"^5.7.3","vitest":"^4.1.6"},"repository":{"type":"git","url":"git+https://github.com/mkotsollaris/agentpassport.git","directory":"packages/agent-sdk"},"homepage":"https://github.com/mkotsollaris/agentpassport/tree/main/packages/agent-sdk#readme","bugs":{"url":"https://github.com/mkotsollaris/agentpassport/issues"},"keywords":["agent-passport","agentic-ai","ai-agents","authentication","rfc-9421","dpop"],"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","test:unit":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit","clean":"rm -rf dist .turbo"},"_id":"@agentic-passport/agent@0.4.1","_integrity":"sha512-bL99yLjLSCf1qbXdlCZ6IeGOM+NZDru78oMNzWMduvSfx2TItbNQCNYZgMauBAaWbMwwGnJgehPC1azZQWH/og==","_resolved":"/private/var/folders/gt/b9ct810116v9ycsn204t46d80000gn/T/06a31144a972b0599318fd0172ebf614/agentic-passport-agent-0.4.1.tgz","_from":"file:agentic-passport-agent-0.4.1.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-bL99yLjLSCf1qbXdlCZ6IeGOM+NZDru78oMNzWMduvSfx2TItbNQCNYZgMauBAaWbMwwGnJgehPC1azZQWH/og==","shasum":"3c92aeb7d331b1b059c285a73a702696228bfc61","tarball":"https://registry.npmjs.org/@agentic-passport/agent/-/agent-0.4.1.tgz","fileCount":15,"unpackedSize":35191,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDOihcNid4tmyfWSmUIMewbKwo9njSNsWGtzK32waJj8AIgIwhoXVwdaK7cVTR0XerOpkEQVVACkO+DGEpRzLxQDao="}]},"_npmUser":{"name":"mkotsollaris","email":"mkotsollari@gmail.com"},"directories":{},"maintainers":[{"name":"mkotsollaris","email":"mkotsollari@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent_0.4.1_1779505840915_0.2882459443983558"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-19T03:53:10.323Z","modified":"2026-05-23T03:10:41.168Z","0.3.0":"2026-05-19T03:53:10.524Z","0.3.1":"2026-05-22T03:20:33.679Z","0.4.0":"2026-05-23T02:29:23.950Z","0.4.1":"2026-05-23T03:10:41.046Z"},"bugs":{"url":"https://github.com/mkotsollaris/agentpassport/issues"},"license":"Apache-2.0","homepage":"https://github.com/mkotsollaris/agentpassport/tree/main/packages/agent-sdk#readme","keywords":["agent-passport","agentic-ai","ai-agents","authentication","rfc-9421","dpop"],"repository":{"type":"git","url":"git+https://github.com/mkotsollaris/agentpassport.git","directory":"packages/agent-sdk"},"description":"AgentPassport agent SDK — HTTP client that runs the handshake.","maintainers":[{"name":"mkotsollaris","email":"mkotsollari@gmail.com"}],"readme":"# @agentic-passport/agent\n\nAgent-side AgentPassport client. HTTP-only. Runs the full handshake (discovery → mandate → register → authorize) and returns a `fetch`-like session.\n\n## Install\n\n```bash\npnpm add @agentic-passport/agent\n```\n\n## Use\n\n```ts\nimport { AgentClient, HostedMandateProvider, generateEd25519KeyPair } from '@agentic-passport/agent';\n\nconst { publicKey, privateKey } = generateEd25519KeyPair();\n\nconst agent = new AgentClient(\n  {\n    keyId: 'my-agent-1',\n    publicKey,\n    privateKey,\n    directoryUrl: 'https://my-agent.example/.well-known/http-message-signatures-directory',\n  },\n  new HostedMandateProvider({ issuerUrl: 'https://issuer.agentpassport.app' }),\n);\n\nconst session = await agent.access('https://vendor.example', {\n  task: 'find top keywords for \"ai oauth\"',\n  budget: { usd: 5 },\n  scopes: ['keyword.search'],\n});\n\nconst res = await session.fetch('https://vendor.example/api/search?q=ai+oauth');\nconst data = await res.json();\nconsole.log(session.audit()); // signed JSONL trail\n```\n\nYou never touch RFC 9421 canonicalization, DPoP proofs, mandate JWTs, or OAuth token exchange. All inside `agent.access()`.\n\n## Claude Code skill\n\nThe companion [`agentpassport` skill](https://github.com/mkotsollaris/agentpassport/blob/main/skills/agentpassport/SKILL.md) activates on `WWW-Authenticate: AgentPassport` 401s and runs this handshake automatically.\n\n## Spec\n\n[Wire format](https://github.com/mkotsollaris/agentpassport/blob/main/packages/protocol/spec.md).\n\n## License\n\nApache-2.0. [Repository](https://github.com/mkotsollaris/agentpassport)\n","readmeFilename":"README.md"}