fix: x402 fetch falls back to local signer config#22
Merged
Conversation
SignerManager only read from env vars (AGENTA_API_SECRET, AGENTA_API_KEY), which meant `agenta sub x402 fetch` failed unless env vars were set — even though the secret was already saved in ~/.agenta/signers/. Now: env vars take priority (for MCP/CI), local signer config is the fallback (for CLI users). Matches how every other sub command works.
Merged
PancheI
pushed a commit
that referenced
this pull request
Mar 27, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @agentaos/chains@1.1.1 ### Patch Changes - Updated dependencies \[]: - @agentaos/core@1.1.1 ## @agentaos/engine@1.1.1 ### Patch Changes - Updated dependencies \[]: - @agentaos/core@1.1.1 - @agentaos/crypto@1.1.1 ## @agentaos/sdk@1.1.1 ### Patch Changes - Updated dependencies \[]: - @agentaos/core@1.1.1 - @agentaos/engine@1.1.1 ## agentaos@1.1.1 ### Patch Changes - [#22](#22) [`1c3b97c`](1c3b97c) Thanks [@PancheI](https://github.com/PancheI)! - x402 fetch falls back to local signer config - `agenta sub x402 fetch` no longer requires `AGENTA_API_SECRET` env var when the secret is already saved locally from `agenta sub create` - `SignerManager` checks env vars first (MCP/CI), then falls back to `~/.agenta/signers/` config (CLI) - Updated dependencies \[]: - @agentaos/core@1.1.1 - @agentaos/engine@1.1.1 - @agentaos/sdk@1.1.1 ## @agentaos/core@1.1.1 ## @agentaos/crypto@1.1.1 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agenta sub x402 fetchrequiredAGENTA_API_SECRETenv var even when the secret was already saved in~/.agenta/signers/fromagenta sub createSignerManager.getConfig()now checks env vars first (MCP/CI), then falls back to local signer config (CLI)subcommand already worksTest plan
agenta sub x402 fetch <url>works without env vars (reads from~/.agenta/signers/)