Skip to content

Repository files navigation

AgentTX JavaScript SDK

Public TypeScript clients and protocol primitives for AgentTX, a deterministic authorization layer between AI agents and payment rails.

AgentTX keeps policy outside the LLM. An agent proposes a purchase, AgentTX binds the request to an identity, merchant, amount, resource, and policy version, then returns ALLOW, REQUIRE_APPROVAL, or DENY. The public pilot is sandbox-only and never moves funds.

Try it in three minutes

No wallet, payment credential, or private key is required.

Packages

  • @agenttx/protocol — strict x402 v2 schemas, atomic-money primitives, request binding, and canonical hashing.
  • @agenttx/sdk — the AgentTX client and controlledFetch() for hosted control-plane integrations.

The authorization service, policy engine, payment workers, database, and operator console are intentionally not part of this repository.

Run the sandbox Agent example

Node.js 22 or newer is recommended.

node examples/pilot-agent.mjs

The example registers one sandbox Agent and submits one authenticated spend proposal. It prints the decision but never prints the bearer credential and never executes payment.

Develop

corepack enable
pnpm install
pnpm check

Security

Never commit an Agent credential. Treat it like a password, store it in a secret manager, and rotate it if exposed. See SECURITY.md.

License

Apache License 2.0. See LICENSE.

About

Public TypeScript protocol primitives, SDK, and sandbox examples for deterministic AI-agent spend authorization.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages