Skip to content

Repository files navigation

@kodycodes/cli

Turn one-off agent work into something you can rerun: a local MCP client for Kody with login, OS keychain token storage, search, and execute. Talks MCP 2026-07-28 (Kody's stateless /mcp lane) and logs in with Client ID Metadata Documents (SEP-991).

npx @kodycodes/cli install
npx @kodycodes/cli login
npx @kodycodes/cli search "what can you do"
npx @kodycodes/cli skill install

Copyright © 2026 Kent C. Dodds. MIT licensed.

Install

npm install -g @kodycodes/cli
kody login

Or run via npx @kodycodes/cli without a global install.

Commands

Command Purpose
kody install Detect running local MCP clients, write their config, and start host OAuth.
kody login Browser OAuth (CIMD + PKCE). Stores access and refresh tokens.
kody logout Deletes stored credentials.
kody status Shows login state without printing secrets.
kody whoami Confirms the MCP connection and lists tools.
kody search [query] Calls Kody search.
kody execute Calls Kody execute (--code, --file, or stdin via --file -).
kody skill install Copies the getting-started skill into Claude Code / Cursor / Agents.

kody install lists running local agents (Cursor, Claude Desktop, VS Code, Goose, Claude Code, Codex, Windsurf, Zed, and similar) and writes each host's remote MCP entry for https://kody.codes/mcp. Common host formats go through add-mcp. It does not list web clients. For ChatGPT, Claude.ai, and Grok, use kody.codes/onboarding.

After install, the CLI prints a prompt you can paste into the configured agent to continue onboarding. Host OAuth stays in that client — kody login is only for the CLI itself.

--mcp-url or KODY_MCP_URL overrides the default https://kody.codes/mcp. --json prints structured MCP results.

Token storage

Credentials are stored in the OS secret store:

  • macOS: Keychain
  • Windows: Credential Manager
  • Linux: Secret Service / libsecret

If the keychain is unavailable (common on headless Linux), the CLI writes a 0600 file under $XDG_CONFIG_HOME/kody (or %APPDATA%\kody on Windows, ~/Library/Application Support/kody on macOS). Tokens are never printed.

Access tokens refresh automatically on expiry or HTTP 401.

Releases

This repo uses semantic-release the same way match-sorter does: conventional commits on main publish @kodycodes/cli with npm provenance (id-token: write). Version in package.json stays 0.0.0-semantically-released.

Trusted publishing for @kodycodes/cli is attached to this GitHub repository.

License

MIT © Kent C. Dodds

About

Official Kody MCP client CLI (@kodycodes/cli): login, secure token storage, search, and execute.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages