cosense
Installation
SKILL.md
cosense — SKILL.md
Reference for AI agents (especially Claude Code) to operate cosense-cli.
Purpose
CLI tool for searching, fetching, creating, and appending pages in Cosense (formerly Scrapbox) projects. Outputs JSON by default, designed for pipeline and agent integration.
Authentication
- Cosense authenticates via connect.sid (SID)
- SID is stored per profile in
~/.config/cosense-cli/config.json - Projects are registered and linked to a profile (account)
- Run
bunx cosense profile setandbunx cosense project addbefore use - Public projects can be accessed without SID
# 1. Create a profile (human only, one-time setup)
bunx cosense profile set personal --sid <connect.sid>