Black Friday sale: 30% off Flywrite
The short version

Sign Claude Code or Codex in with the plan you already pay for, such as a paid Claude plan or a ChatGPT plan that includes the Codex CLI, and check it isn't billing an API key. In Flywrite, run it in the built-in terminal under your own account: your provider bills its usage, and Flywrite adds no AI fee.

We make Flywrite, the Markdown writing app these steps use.

What you'll need

  • A Mac
  • Flywrite, installed on that Mac
  • For Claude Code: a Pro, Max, Ultra, Team or Enterprise plan, or a Console account; the free Claude plan doesn't include it (Claude plans)
  • For Codex: a ChatGPT plan that includes the Codex CLI, or an OpenAI API key (Codex plans)
  • Your writing as Markdown files in one folder

Do it step by step

By the end, your agent is signed in with the plan you already pay for, it runs in Flywrite's terminal under your own account with its provider, and Flywrite charges no AI fee: your provider bills the agent's usage.

  1. Install the agent you pay for. Run Anthropic's installer for Claude Code or OpenAI's for Codex; each guide lists other ways to install (Claude Code setup, Codex CLI). Once it runs in your computer's terminal, it runs in Flywrite.

    # Claude Code
    curl -fsSL https://claude.ai/install.sh | bash
    # Codex
    curl -fsSL https://chatgpt.com/codex/install.sh | sh
  2. Open your writing folder in Flywrite. Choose Open Folder to use a folder already on your computer, or New Project to start fresh. A project is an ordinary folder of files, such as this example:

    essays/
      ideas.md
      2026-11-why-i-garden.md
  3. Start the agent in Flywrite's terminal. Press ⌃2 for Claude Code or ⌃3 for Codex, or click + in the terminal tab bar and pick it. It's a real terminal under the page, the same shell you'd get in macOS Terminal. Flywrite saves a checkpoint of the whole project when Claude Code starts in its terminal, and when Cursor Agent starts after its one-time setup. Codex and other CLI agents don't trigger it, so press ⌘⇧C before you start them. The shortcuts here are defaults, and every shortcut is customizable.

    You should see: on first launch, Claude Code opens a browser window to log in, and Codex asks you to choose Sign in with ChatGPT or another sign-in method.

  4. Sign in with your plan, not an API key. For Claude Code, log in with your claude.ai account; if it's already signed in with a Console pay-as-you-go account, type /login to switch to your subscription. For Codex, choose Sign in with ChatGPT, or run codex login in a plain terminal tab (⌃1) and complete the browser flow.

    /login
  5. Check what Claude Code bills. Type /status in Claude Code to see which sign-in is active; it marks the one not in use. If an ANTHROPIC_API_KEY is set in your shell and you approved it, Claude Code uses that key instead of your plan, so you pay API usage charges, in Flywrite's terminal too. To go back to your plan, run these in a plain terminal tab (⌃1), check /status again, and remove the key from your shell profile to stop it for good.

    unset ANTHROPIC_API_KEY
    claude
  6. Check what Codex bills. In a plain terminal tab (⌃1), run codex login status to see the active sign-in method. To move from an API key to your ChatGPT plan, run codex logout, then codex login.

    codex login status
  7. Add any other CLI agent you pay for (optional). In Settings → Terminal, add a launcher for it; it then appears when you click +. It runs under your own account with its provider and that provider's terms; send it a selection with ⌘⇧L, and press ⌘⇧C before it starts, since it gets no automatic checkpoint.

    You should see: your new launcher in the + menu of the terminal tab bar.

When not to use this

  • You want the AI built into the app, in one price. Pick a tool that bundles its own AI. Flywrite bundles none, so you pay your agent's provider as well.
  • You only want the agent, not a writing app. Run Claude Code or Codex in macOS Terminal in your writing folder, on the same plan and sign-in (Claude Code setup, Codex CLI).
  • You'd rather not see a terminal. Anthropic's Claude desktop app runs Claude Code in its Code tab, on the same Claude plan (Claude desktop app).
  • You don't write on a Mac. Flywrite is Mac only. Claude Code also runs on Windows and Linux, so follow Anthropic's setup guide and use your own terminal.
Use the agent plan you already pay for

Flywrite is $99 a year for Mac, with no AI fee. Read about the terminal.

Buy now

Questions

Does Flywrite charge for AI?

No. Flywrite doesn't bundle its own AI: you run Claude Code, Codex or another CLI agent in its terminal, on your own subscription or pay-as-you-go account with that provider. Flywrite is a complete writing app without an agent. Writing with AI in Flywrite.

What does writing with an agent in Flywrite cost?

Flywrite's license, shown in the facts table above, plus the agent plan you already have: a paid Claude plan or a Console account for Claude Code, or a ChatGPT plan that includes the Codex CLI. If you sign in with an API key instead, your provider bills usage at its API rates. Flywrite adds no AI fee.

Sources
  1. Flywrite pricing. Checked .
  2. Flywrite docs: Writing with Claude Code. Checked .
  3. Flywrite docs: Writing with Codex. Checked .
  4. Flywrite docs: The terminal. Checked .
  5. Flywrite docs: Your first project. Checked .
  6. Flywrite docs: Checkpoints & versions. Checked .
  7. Flywrite docs: Keyboard shortcuts. Checked .
  8. Flywrite Privacy Policy. Checked .
  9. Claude Code: Set up. Checked .
  10. Claude Code: Authentication. Checked .
  11. Claude Help Center: Use Claude Code with your Pro, Max, or Ultra plan. Checked .
  12. Claude pricing. Checked .
  13. Claude Code: Desktop application. Checked .
  14. OpenAI Codex docs: Codex CLI. Checked .
  15. OpenAI Codex docs: Authentication. Checked .
  16. OpenAI Codex docs: Pricing. Checked .

Write with your agent in a writing app.

Buy now