x402 Trinity for Zed
io.github.devmster/x402-trinity
Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.
client:Zed
transport:stdio
runtime:npm
Install x402 Trinity in Zed
~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json
{
"context_servers": {
"x402-trinity": {
"command": "npx",
"args": [
"-y",
"x402-trinity"
],
"env": {
"X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
"X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
"X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>",
"X402_BUDGET_FILE": "<X402_BUDGET_FILE>",
"X402_ALLOW_HOSTS": "<X402_ALLOW_HOSTS>",
"X402_NETWORKS": "<X402_NETWORKS>"
}
}
}
}
Merge this into your existing settings object — do not replace the file. Zed docs