openkakao-cli AGENTS.md

Instructions for using openkakao-cli, a command-line tool for reading and managing KakaoTalk chats. KakaoTalk is a messaging app, and the instructions distinguish safe read-only actions from actions that send, edit, react to, or delete messages.

In plain words
What is it for?
Use them to read local chats, search messages, inspect account and friend data, preview message changes, and optionally send, edit, react to, or delete messages after opting in.
Why use it?
They make the tool safer for AI agents by keeping message-changing actions disabled unless explicitly enabled. They also provide previews before risky actions are carried out.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/junghoonghae/openkakao-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/JungHoonGhae/openkakao-cli

Made for: Codex, OpenCode.

Per session 735 This file is loaded in full into every session.
When invoked 735 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00735 $0.00735
Opus 5 $0.00367 $0.00367
Sonnet 5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

Measured 3d ago against content hash cec88f155df3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openkakao-cli AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Agent Integration Guide

openkakao-cli is designed for AI agent integration. All commands support --json for structured output.

Safety Model

LOCO write operations (send, delete, edit, react) are disabled by default to prevent account bans.

Safe commands (always available, no server contact)

# Read chats from local KakaoTalk database (SQLCipher, no network)
openkakao-cli local-chats --json
openkakao-cli local-read <chat_id> -n 30 --json
openkakao-cli local-search "keyword" --json
openkakao-cli local-schema

# Preview actions without executing
openkakao-cli send 123 "message" --dry-run --json
openkakao-cli delete 123 456 --dry-run --json

Safe commands (REST API, lower risk)

openkakao-cli chats --json
openkakao-cli read <chat_id> --rest --json
openkakao-cli friends --json
openkakao-cli me --json
openkakao-cli doctor --json

Risky commands (require opt-in)

These require allow_loco_write = true in ~/.config/openkakao/config.toml:

openkakao-cli send <chat_id> "message" -y --json
openkakao-cli send --me "test" -y --json    # Send to memo chat
openkakao-cli delete <chat_id> <log_id> -y --json
openkakao-cli edit <chat_id> <log_id> "new" -y --json
openkakao-cli react <chat_id> <log_id> --json

Unattended Mode

For fully non-interactive operation:

openkakao-cli --unattended --allow-non-interactive-send send <chat_id> "msg" -y --json

Or configure in ~/.config/openkakao/config.toml:

[mode]
unattended = true

[send]
allow_non_interactive = true

[safety]
allow_loco_write = true
min_unattended_send_interval_secs = 10
  1. Read with local-chats / local-read (zero risk)
  2. Preview with --dry-run before any write
  3. Execute only after user confirmation
  4. Prefer --me flag for testing sends

JSON Output

All commands with --json return structured JSON to stdout. Diagnostic messages go to stderr.

# List chats
openkakao-cli local-chats --json
# Returns: [{"chat_id": 123, "chat_type": 0, "chat_name": "...", ...}]

# Read messages
openkakao-cli local-read 123 --json
# Returns: [{"log_id": 456, "chat_id": 123, "sender_name": "...", "message": "...", ...}]

# Dry-run
openkakao-cli send 123 "hello" --dry-run --json
# Returns: {"dry_run": true, "action": "send", "chat_id": 123, "message": "..."}

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 98 lines · 735 tokens per session scan A cec88f155df3

Subscribe to this mod's changes

openkakao-cli AGENTS.md is an instructions file published in the GitHub repository JungHoonGhae/openkakao-cli (119 stars, last pushed 1mo ago), licensed MIT. It adds 735 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.