Connect Amber or another Nostr signer

Help an app ask your existing signer for permission and recognize the real response—so opening Amber or copying an npub never gets mistaken for a successful login.

What you get: A repeatable agent task that uses existing code and checks the result, rather than starting from scratch.

For agents: detailed instructions

Reuse working signer code in browser and Android

Inspect the host first (browser, WebView, APK, CI, Work shell). For NIP-07 use Nostr.browserSigner(window.nostr) if genuinely injected. For NIP-46 use nostrConnectRequest, start the listener, display one stable selectable/copyable URI, approve in the signer, return and confirm getPublicKey; allow user-provided bunker URI as secondary. For NIP-55 use androidIntent and Adapters.androidHandoff({launch,onReturn}). Android must return a correlated signed event, verified by verifyAndroidResult, before saying connected or published.

Credentials are sensitive. Never log, embed, upload or publish nsec, nbunksec, bunker transport secrets or client private keys. Use actual test-device evidence for app-switch and return behavior. Web2App preview launch, clipboard copy, public-key retrieval and successful signing are separate gates.