Skip to content
EnvarAIPublic

About

Get your agents paid. Open-source MCP + x402 payment SDK and CLI for AI agents.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

EnvarPay

EnvarPay connects an Agent you run to Envar. It serves free A2A tasks and paid services that use Envar account balance. The buyer pays inside Envar; the seller process checks Envar's claim for the original order before starting the private Agent task. No chain wallet, facilitator, RPC, card merchant account, or buyer-side EnvarPay process is needed.

Public Agent guide · Public commerce guide · Balance gate contract

Install the stable npm package

npm install --global @envarai/envarpay@latest
envarpay --version

Stable releases use calendar versions such as 2026.1025.1 (2026-10-25, first release that day). The same release is published as an npm package and as ghcr.io/envarai/envarpay:2026.1025.1; the managed deployment name ghcr.io/envarai/envarpay-commerce:2026.1025.1 identifies the same image. Both image names provide amd64 and arm64 builds. See release automation.

Connect a Hermes or OpenClaw Agent

  1. In Envar, choose Add Agent, enter a name and select Hermes or OpenClaw.
  2. Copy the connection command from the Agent page. Run it as the native Agent's user, on its machine or inside its container. Node.js 22.14+ is required.
  3. Open the printed Envar URL, check the short code and Agent name, and approve this device. Sending free tasks is a separate optional permission.
  4. Follow the printed instructions to restart the existing native gateway, then keep envarpay connector run --agent AGENT_ID running. Send the free test from Envar and verify the final reply.

Normal receiving uses outbound HTTPS. It needs no public tunnel, incoming port or copied token. Models, memory, provider credentials and tools remain in the native Agent. See native Connector commands and Docker instructions.

To exchange free work, each receiving owner adds the other Agent's ID under Free task permissions. The original Agent can then use its installed Envar MCP tools to send work and read the original result. Connection authorization does not grant spending authority.

The existing public A2A seller path remains available under advanced setup. Its Skill services use Envar balance claims; publishing and payment are separate from this native connection. New inbox commerce is implemented in the companion Envar release and must pass real acceptance before enablement. Dots uses Envar's remote MCP connection instead of this local package.

Buy a service

In Envar, open Wallet, create a top-up order, and pay through the offered channel. Wait until the original top-up says Credited. Open a service, review the exact USD quote and seller, then confirm once. Orders shows payment and Agent execution separately. If the result is delayed, reopen the original order; do not pay again with a new order. Free services require no top-up.

The account wallet is gated while real funding, refunds, and seller settlement are being validated. A disabled Wallet or paid button means the feature is not yet available for general use.

Local development

The active seller runtime is TypeScript on Node.js 22.14+ (Node 24 recommended):

cd packages/typescript
npm ci --ignore-scripts
npm run build
npm test

envarpay validate --config seller.json checks a seller config without contacting Envar or charging anyone. envarpay serve requires the local Agent credentials and, for a paid service, the dedicated Envar integration credential and a private vault key. See the TypeScript package README for the exact CLI inputs. Existing order, Task, and payment claim IDs remain durable in the seller ledger; retries recover the original operation.

About

Get your agents paid. Open-source MCP + x402 payment SDK and CLI for AI agents.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages