agentleFS
polarsourcepolarsource/polar/.agents/skills/local-login/SKILL.md

local-login

Skill11k starsChanged 6 days agoApache-2.0View on GitHub

Sign in to the locally running Polar dashboard with the `dev otp` command. Use whenever a task needs a logged-in local session, such as checking a dashboard change in the browser, taking screenshots, reproducing a bug behind login, or when a local page stops at /auth/email-otp and asks for a 6-character code.

  • Reads credentials

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about polarsource/polar

The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 40

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (40 times).

On GitHub · 27

22 more on GitHub

On YouTube · 7

2 more on YouTube

On Bluesky · 4

On Hacker News · 1

On the web · 1

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Wait for the page to reach /auth/email-otp.

    line 21
  2. Very specific:

    Run dev otp and read the code from its output:

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Local login

Local sign-in uses the real email code flow. The code is never emailed anywhere you can read, and the API only stores a hash of it. dev otp gives you a code that works.

Steps

  1. Open http://127.0.0.1:3000/auth. /login returns 404.
  2. Enter the email and click Sign in with email. admin@polar.sh is the seeded test account. An email with no account signs up a new local user.
  3. Wait for the page to reach /auth/email-otp.
  4. Run dev otp and read the code from its output:

      RG9EJD  admin@polar.sh
      Requested 1 minute ago, expires in 29 minutes
  5. Type the code into the page. It submits by itself after the sixth character and lands on the dashboard.

What to know

  • Order matters. dev otp needs a sign-in that is waiting for a code. If it prints "No sign-in is waiting for a code", do steps 1 to 3 first.
  • It issues a new code. The code in the API log (LOGIN CODE: …) stops working once dev otp has run. Each run also replaces the code from the previous run, so always use the last one printed.
  • Several sign-ins waiting. It picks the most recent one. Run dev otp <email> to pick by address, for example when a person and an agent are signing in at the same time.
  • Codes last 30 minutes from the moment the email was entered. After that, start again from step 1.
  • Development only. It refuses to run outside development or against a database that is not local.

From a script

dev otp prints for people. A script can call what it wraps, from server/:

uv run python -m scripts.dev_login_code --email admin@polar.sh

It prints EMAIL=, CODE=, CREATED_AT= and EXPIRES_AT= lines (the last two as Unix timestamps), or nothing when no sign-in is waiting.

Docker stack

dev otp uses the database in server/.env, which is the stack started by dev up. For the dev docker stack, read the code from the api container's logs instead, as described in the local-environment skill's payment-testing rule.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.