Publishing and Workflow

Use Kookee from the terminal

Atualizado em 59 visualizações

The kookee command signs in once through your browser, then calls the same MCP tools that Claude and ChatGPT use, plus the API the dashboard runs on. It works as you, in every project you belong to.

Install

On macOS and Linux:

Bash
curl -fsSL https://kookee.dev/install.sh | sh

The script downloads the build for your system, checks its SHA-256 and puts kookee into /usr/local/bin, or into ~/.local/bin when /usr/local/bin is not writable. It prints a line to add to your shell profile when that folder is not on your PATH.

On Windows, in PowerShell:

powershell
iwr -useb https://kookee.dev/install.ps1 | iex

It installs into %LOCALAPPDATA%\Programs\kookee and adds that folder to your user PATH. Open a new terminal window afterwards.

There are builds for macOS (Apple silicon and Intel), Linux (x64 and arm64) and Windows (x64). kookee update installs the latest version over the one you have.

In any project, Connect → CLI in the dashboard shows these install commands, kookee login, and the kookee project command that makes that project the default.

Sign in

  1. Run kookee login. A browser tab opens on Kookee.

  2. Sign in if you are not signed in yet.

  3. On Allow Kookee CLI to use your Kookee account?, choose Read and write or Read only.

  4. Click Allow.

  5. If you belong to several projects, type the number of the one to use by default. With one project, the CLI picks it.

The terminal then prints who you are signed in as and your default project. When you sign in again later, it keeps the default you had.

kookee login --read-only asks for read access only. The page then shows no choice, only Allow.

Sign in without a browser

Over SSH, kookee login does this by itself. In a container with no browser, run kookee login --no-browser.

  1. Open the address the terminal prints, on any device.

  2. Sign in, choose the access and click Allow.

  3. The browser fails to open a 127.0.0.1 page, which is expected. Copy that page's full address.

  4. Paste it into the terminal.

Pick a project

The CLI sends your default project with every call, so you never pass it by hand.

Bash
kookee project          # lists your projects, * marks the default
kookee project lumen    # makes Lumen the default, by slug, name or id

For one call in another project, add --project with the project's id.

Call the MCP tools

Bash
kookee tools                                      # one line per tool
kookee tool list_entries --help                   # a tool's input
kookee tool get_current_project
kookee tool list_entries type=blog locale=en
kookee tool list_feedback status=open

key=value sends text and key:=value sends JSON: limit:=5, categoryId:=null, tagIds:='["<id>"]'. For a long body, put the whole input into a file and pass --input @entry.json, or send it on standard input with -.

A read-only sign-in gets only the tools that read.

Call the API

kookee api calls the API procedures the dashboard calls, such as entry.getList, for what no tool covers.

Bash
kookee api                                        # every procedure you can call
kookee api entry.getList --help                   # one procedure and its input
kookee api entry.getList type=changelog limit:=5

The results are JSON, indented in a terminal and on one line in a pipe.

Some procedures stay in the dashboard and answer FORBIDDEN: CLI_PROCEDURE_NOT_ALLOWED: API keys, MCP tokens and connected apps, webhooks, integrations, inviting and removing members, changing roles, invitations, billing, and deleting or transferring a project.

Give Claude Code the CLI

Bash
kookee skill install

This writes a Claude Code skill to ~/.claude/skills/kookee/SKILL.md, and Claude Code loads it in the next session you start. The skill tells Claude Code when to use kookee, to start with kookee tool get_current_project, and how to pass arguments. kookee skill prints the same text for other agents. The text comes from Kookee's server, so running kookee skill install again picks up the newest version.

Changes made with kookee tool are recorded under your name and marked via MCP on the feedback board, in comments and on the status page. With kookee api, they look like changes from the dashboard. The skill tells Claude Code to write drafts and to publish only when you ask.

Sign out

kookee logout signs this computer out and revokes its sign-in. To sign out every computer at once:

  1. Open your account menu and choose Settings.

  2. Open Security.

  3. Under Connected apps, click Disconnect next to Kookee CLI.

  4. Click Disconnect to confirm.

Changing or resetting your password signs out every computer as well.

Limits

Every kookee api and kookee tool call counts toward the project owner's monthly API requests, the same as an MCP request, including a call that needs no project, such as kookee api project.list. Add --project= with nothing after it to such a call: it sends no project and counts nothing. kookee tools and kookee project don't count.

API calls are capped at 300 a minute per account. API and tool calls also share the project's per-minute limit with MCP requests.

If something goes wrong

  • "Your sign-in ended. Run 'kookee login'." or "Not signed in. Run 'kookee login'.": this computer has no sign-in, or the CLI was disconnected in Connected apps or by a password change or reset. Run kookee login.

  • FORBIDDEN: OAUTH_WRITE_SCOPE_REQUIRED: you signed in with Read only. Run kookee login and choose Read and write.

  • FORBIDDEN: CLI_PROCEDURE_NOT_ALLOWED: the procedure is one of those that stay in the dashboard.

  • "Too many requests" with MONTHLY_API_LIMIT_EXCEEDED: the project owner's plan has used its API requests for the month. Waiting a minute does not help: the count starts again on the first day of the month, UTC.

  • MCP_PROJECT_NOT_FOUND on a tool call after a project's slug changed: run kookee project <new slug>.

The exit code tells a script what happened: 2 means not signed in, 3 a network error, 4 too many requests or the monthly limit, 64 a mistake in the arguments or the input, and 1 any other error.

Continue reading

Este artigo foi útil?