{"uid":"cap_LXvDD2AjWtxPm7g8pRW1I","slug":"agent-exec-claim-key-renewal-015374fb","name":"agent-exec Claim Key Renewal","description":"Accountless, pay-per-use code execution for software agents: submit source code, get stdout, stderr and exit code back from an isolated, network-less sandbox. No account, no API key -- possession of valid payment is sufficient.","url":"https://agent-exec.45.67.221.128.sslip.io/claim/%7Bkey%7D/renew","method":"POST","headers":{},"bodySchema":{"type":"object","required":["plan","holder"],"properties":{"plan":{"enum":["hour","day","week"],"type":"string","description":"Which plan to buy. Its duration is ADDED to whatever the key has left, never substituted for it, so extending early forfeits nothing."},"holder":{"type":"string","description":"Which of your holders is extending the key. Unsigned -- checked against the key's CURRENT holder (CLAIM_NOT_YOURS if it does not match), the same way DELETE /claim/{key}'s `holder` is: identity is the paying wallet, but a wallet's own fleet can still have more than one process, and only the one that actually holds the key may extend it."}}},"responseSchema":{"type":"object","required":["key","plan","expiresAt","previousExpiresAt","payment"],"properties":{"key":{"type":"string"},"plan":{"enum":["hour","day","week"],"type":"string"},"payment":{"type":"object","properties":{"asset":{"type":"string"},"payer":{"type":"string","description":"The paying wallet's address."},"amount":{"type":"string","description":"Atomic units of the settlement asset that were charged."},"network":{"type":"string"},"transaction":{"type":"string","description":"On-chain settlement transaction hash."}}},"expiresAt":{"type":"integer","description":"Unix ms the hold is free again, after this extension."},"previousExpiresAt":{"type":"integer","description":"Unix ms the hold would have expired before this extension."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0052","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0052/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0052","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0052","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F9YqctCxvHSO4BG6LUMnz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0052","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extends the expiration time of an existing code-execution claim key by adding an hour, day, or week to its remaining duration, billed via x402 micropayment.","exampleAgentPrompt":"My agent-exec sandbox key is about to expire — can you extend it by one day using my wallet address 0xAbC123... as the holder?","exampleUseCases":[{"title":"Keep long-running agent task alive","prompt":"My agent has been running a multi-step data processing job and its sandbox key is going to expire in 10 minutes — extend it by an hour using holder wallet 0xDead...Beef so it doesn't get cut off."},{"title":"Weekly batch job pre-renewal","prompt":"Every Sunday before my weekly report runs, extend my agent-exec claim key by one week using holder 0x1234...abcd so the batch job never hits an expired session."},{"title":"Add time after underestimating task length","prompt":"I thought my code analysis would finish in an hour but it's taking longer — can you add another day to my current claim key, holder is 0xFeed...Cafe, so I don't lose my sandbox slot?"}],"resultDescription":"Returns the claim key identifier, the chosen plan, the new expiry timestamp in Unix milliseconds, the previous expiry timestamp before the extension, and payment details including the paying wallet address, amount charged in atomic USDC units, the settlement network, and the on-chain transaction hash.","failureModes":["CLAIM_NOT_YOURS: the holder address provided does not match the key's current holder — extension is rejected","Key not found: the claim key in the URL path does not exist or has already been released","Payment failure: the x402 micropayment cannot be settled, blocking the renewal","Invalid plan: supplying a plan value outside hour/day/week causes a validation error","Expired key: attempting to renew an already-expired key may be rejected depending on service policy"],"whenToPreferThis":"Use this endpoint when an agent already holds an active (or soon-to-expire) claim key on agent-exec and needs to extend it without forfeiting remaining time. It is the right choice when a task is running longer than expected and the agent must avoid losing its isolated sandbox slot mid-execution. Prefer this over re-claiming because renewal stacks additively on remaining time rather than resetting it, so no pre-paid duration is wasted.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:44:23.082Z","isFirstParty":false}