Connect AI Assistants To Markdawn
You can use Markdawn with an AI assistant that can work with a terminal, such as Claude Code or Codex. The current path uses the Markdawn CLI and its optional skill.
How It Works
Section titled “How It Works”- Install the CLI.
- Create a named token in Markdawn Settings → API tokens.
- Sign in with
markdawn login. - Let the tool read or change pages through the CLI.
- Review the result in Markdawn.
There is no separate AI notebook to keep in sync.
Start With Read Access
Section titled “Start With Read Access”New tokens are read-only by default. Read access is enough for a tool to find pages, read content, understand folders, and answer questions from existing information.
Give a token write access only when you want the tool to create or edit pages.
Read access is the right starting point for an assistant that only needs to answer questions from your pages. Add write access after you have tested the read workflow and decided which pages it should change.
Use Targeted Changes
Section titled “Use Targeted Changes”For an edit:
- Read the current page.
- Identify the exact passage to change.
- Ask the tool to replace that passage.
- Check the result.
Do not ask a tool to rewrite an important page from memory when a targeted edit will do.
Keep Secrets Private
Section titled “Keep Secrets Private”Never paste your token into a chat, commit it to a repository, or put it in a command that can be saved in shell history.
See Markdawn CLI for setup and the generated API Reference for endpoint details.
What The Assistant Can Do
Section titled “What The Assistant Can Do”With read access, an assistant can list pages, view page content, inspect folders, and answer from the information it can access. With write access, it can create pages or apply targeted changes. It cannot bypass the permissions attached to the token or pages.