DEV Community

CodeGo AI
CodeGo AI

Posted on

Your coding agent needs your accounts. It should never see your passwords.

If you let a coding agent do real work — not just write code, but log into sites, call APIs, and operate platforms for you — it needs your accounts. And the way most of us hand those over today is grim: a .env file, keys pasted into a config, credentials sitting in plaintext where the model can read them, log them, or leak them into a transcript.

That's the problem I built Kuroko to solve. It's a local-first identity & permission layer that sits between you and your coding agents (Claude Code, Codex, DeepSeek Harness, and agent skills generally). You entrust your accounts and permission boundaries to it once. After that, agents can log in and work on any platform for you — while never seeing a single plaintext secret.

The trust problem

A model is not a vault. Anything in its context can end up in logs, in outputs, or — with prompt injection — in someone else's hands. So "just give the agent your keys" scales your productivity and your blast radius at the same time.

The usual answers don't quite work either:

  • Environment variables and .env files are still plaintext to anything that can read the filesystem or the process env.
  • MCP credential servers move the secret, but now a server process holds it — and you've added a protocol layer and its own attack surface.
  • Letting the agent ask you for a code every time kills the autonomy you wanted in the first place.

How Kuroko works

Entrust once. Accounts, persistent logged-in browser sessions, passwords, TOTP seeds, and API keys live in an encrypted local vault: envelope encryption with your OS keychain (@napi-rs/keyring) + AES-256-GCM, with headless file-key mode and 1Password CLI / Bitwarden CLI backends if you prefer those.

Blind use. When an agent needs to log in, Kuroko blind-fills the password and generates the RFC 6238 TOTP code. When a command needs a key, kuroko run --with KEY injects it into that process only. The agent gets the result of authentication, never the secret itself.

Permission boundaries. Every account gets a guardrail tier — autonomous, read-only, or paused — and there's a global kill-switch (kuroko pause / kuroko resume) that stops everything at once. If an agent goes off the rails, you don't revoke keys one by one; you pause the layer.

Isolated browsing. Each account gets its own Chromium profile driven over native CDP (no Playwright), with ARIA snapshots that redact secrets, so logged-in sessions stay separated per account.

Zero MCP. The whole interface is a CLI plus a SKILL.md. Any harness that can run a command can use it — Claude Code, Codex, DeepSeek Harness, universal agent skills — with nothing protocol-specific to install.

Try it

npm install -g kuroko-cli   # Node 22+
kuroko ui                    # local console on 127.0.0.1
Enter fullscreen mode Exit fullscreen mode

It's MIT-licensed and open source: https://github.com/sh2001sh/kuroko

I'd genuinely like to hear where you think this threat model breaks. What would an agent have to be prevented from doing in your setup — and who should hold the keys, if not a layer like this?

Top comments (0)