getting-started-with-nostr

Logging into Websites with Your Nostr Account 🔑

You can now use your Nostr identity to log into websites — no email, no password required.

This method is called NAWC, short for Nostr Auth with Capability. It’s a way for websites to verify you are you by asking your Nostr client or extension to cryptographically sign a message — just like making a post or a zap.


🧠 Why Use Nostr for Login?

With NAWC, your npub (public key) becomes your universal login.


🧰 What You Need

To log into sites using NAWC, you’ll need one of the following Nostr signing tools:

Tool Type Notes
Alby Browser extension Popular, integrates with Lightning & Nostr
Nos2x Browser extension Lightweight Nostr signer for logins
NsecBunker Remote signer Great for mobile or secure setups

These tools manage your keys securely and let you sign login requests without copying/pasting anything.


🚫 Why You Should Not Paste Your nsec Into Sites or Apps

Your nsec is your private key — it controls your Nostr identity. Anyone who has it can post, zap, or impersonate you.

Copy-pasting your nsec is risky because:

Instead, always use a signing extension like Alby, Nos2x, or a remote signer like NsecBunker. These tools sign messages without exposing your private key to any site.

🔐 Rule of thumb: If a site asks you to paste your nsec, don’t trust it.


🚀 How It Works (Simplified)

  1. You visit a website that supports Nostr login
  2. The site asks your browser to “sign in with Nostr”
  3. Your Nostr signing tool (like Alby) asks you to approve
  4. Once you sign, the site knows it’s really you (your npub)

No passwords. No accounts. Just one identity you own across the web.


🔄 Using Different nsecs (Switching Identities)

You can log into websites using different Nostr accounts if you want to keep certain activities or identities separate.

How to switch depends on the signing tool:

If you’re using Alby:

If you’re using Nos2x:

If you’re using NsecBunker:

Just remember: each identity is completely separate — followers, notes, zaps won’t carry over unless you migrate them manually.


🔐 Is This Secure?

Yes — as long as you protect your private key. Signing tools like Alby or Nos2x never expose your key to websites — they just verify your identity on your behalf.

Always check the site before signing anything. If in doubt, don’t sign.


🧭 Where Can I Try This?

More sites are adding support for Nostr login every week.


🙋‍♀️ FAQ

Can I use this on mobile?

Yes, but you’ll likely need a mobile-compatible signer like NsecBunker or a browser extension that works on mobile (if available).


What happens if I lose access to my key?

You won’t be able to log into sites using that Nostr identity anymore — this is why backing up your nsec is critical.


Can someone else log in as me?

Only if they have your private key (nsec). Never share it. Use password managers or trusted extensions to manage it safely.


✅ Summary

This is one more step toward a decentralized internet where you own your identity.