
Security News
Rust 1.100 Will Add Dependency Cooldowns to Cargo
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.
@deepfirstsearch/agent-pay-turnkey
Advanced tools
Turnkey-held keys as Agent Safe payers: x402 payments signed inside Turnkey, inside an owner-signed budget
Use a key held in Turnkey as an Agent Safe payer: your agent pays x402 APIs in USDC, the key never leaves Turnkey, and every payment stays inside the owner's rules (allowlisted payee, pinned price, sealed plan, on-chain budget).
Beta, unaudited. Not affiliated with Turnkey.
npm install @deepfirstsearch/agent-pay-turnkey @deepfirstsearch/agent-pay @turnkey/sdk-server viem
import { Turnkey } from "@turnkey/sdk-server";
import { createAgentPay, MerchantRegistry } from "@deepfirstsearch/agent-pay";
import { turnkeyPayer } from "@deepfirstsearch/agent-pay-turnkey";
const turnkey = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey, apiPrivateKey, defaultOrganizationId });
const payer = turnkeyPayer({ client: turnkey.apiClient(), address: "0xYourTurnkeyWalletAddress" });
const pay = createAgentPay({
registry: new MerchantRegistry([{ origin: "https://api.example.com", payTo: "0x…", network: "eip155:8453", maxPerTx: 50_000n, pricePin: 10_000n }]),
policy: { allowedNetworks: ["eip155:8453"] },
payer: () => payer,
session: { readsUntrustedInput: true, accessesSensitiveData: false, canPay: true },
});
turnkeyPayer hashes the typed data locally with viem and asks Turnkey to sign that exact digest (signRawPayload, HASH_FUNCTION_NO_OP). In our tests, @turnkey/viem 0.14.44's signTypedData recovered to a different address than the signing wallet, while signing the digest recovers correctly; it also makes the signed payload auditable.turnkeyPayer refuses typed data that is not an EIP-3009 TransferWithAuthorization from this wallet on pinned USDC (Base or Base Sepolia, with USDC's own EIP-712 domain), and it refuses messages and transactions.HASH_FUNCTION_NO_OP), so a policy that allows ACTIVITY_TYPE_SIGN_RAW_PAYLOAD for this wallet allows any digest: Turnkey can't tell a USDC payment from a Permit or a transaction hash. The check above protects the turnkeyPayer path only. Whoever holds the Turnkey API key can sign anything with this wallet, so keep that key in the payment service, out of the model's process, and give it its own non-root Turnkey user scoped to this one wallet.vaultFunder and the owner CLI in @deepfirstsearch/agent-pay) so a compromised machine still can't exceed what the owner signed.npm ci && npm test # offline tests; set TURNKEY_CREDS=/path/creds.json to also run against a real Turnkey organization
FAQs
Turnkey-held keys as Agent Safe payers: x402 payments signed inside Turnkey, inside an owner-signed budget
The npm package @deepfirstsearch/agent-pay-turnkey receives a total of 15 weekly downloads. As such, @deepfirstsearch/agent-pay-turnkey popularity was classified as not popular.
We found that @deepfirstsearch/agent-pay-turnkey demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.