Connect AI
Choose the account and model you want to use for document editing.
You don’t need a separate AI subscription for HamaEditor. Use the Claude, Codex, or other AI account you already have, or connect an OpenRouter account through Pi. All provider connections and model settings live under Settings → AI → Models & connections.
Compare AI providers
| Provider | What you need | How to connect | Best for |
|---|---|---|---|
| Claude | Claude Pro (or higher) subscription, or an Anthropic API key | Sign in via browser (OAuth) or API key (sk-ant-…) |
Writing, proofreading, and working across long documents. Defaults to the Sonnet family. |
| Codex | ChatGPT Plus (or higher) subscription, or an OpenAI API key | Sign in via browser (device code) or API key (sk-proj-…) |
Table edits and structured review; supports the document-image-generation skill for inserting illustrations. |
| Antigravity | Google account | Sign in with Google | Switch between Gemini and Claude models under one account. Usage limits follow your Google AI plan. |
| OpenCode | An OpenCode 2 connection to a model provider | Choose OpenCode and connect your model provider in its sign-in terminal. | Choose a tool-capable model by provider and model name. |
| Grok Build | A Grok Build account | Choose Grok Build and complete the device sign-in. | Read and edit the open document with a model available to your Grok account. |
| Muse Code | A Muse Code account | Choose Muse Code and follow its login prompt. | Use Muse with the editor’s document tools and edit review. |
| BYOK (Pi · OpenRouter) | OpenRouter account with credits | OpenRouter OAuth sign-in or API key (sk-or-v1-…) |
Pay only for what you use with no monthly fee. Register up to 3 models from the OpenRouter catalog. |
Connect Claude
-
Install the CLI
Go to Settings → AI → Models & connections → AI accounts and select Claude. If the CLI isn’t installed yet, click Install and continue to install it automatically in an app-managed folder.
-
Sign in or add an API key
- Sign in via browser: Best if you already have a Claude subscription. After signing in, a long-lived token is stored in macOS Keychain. If you’re already signed in to Claude Code in your terminal, HamaEditor can reuse that session.
- Enter API key: Paste an
sk-ant-…key from the Anthropic Console to pay by API usage.
Connect Codex
-
Install the CLI
Go to Settings → AI → Models & connections → AI accounts, select Codex, and click Install and continue if the CLI isn’t installed yet.
-
Sign in or add an API key
- Sign in via browser: Copy the verification code shown on screen and confirm it in your browser with your ChatGPT account.
- Enter API key: Paste your OpenAI API key (
sk-proj-…) directly.
Connect Antigravity
-
Install the CLI
Go to Settings → AI → Models & connections → AI accounts, select Antigravity, and click Install and continue if the CLI isn’t installed yet.
-
Sign in with Google
Click Sign in with Google to open Google sign-in in your browser, then paste the returned code back into the app.
Connect OpenRouter (BYOK · Pi)
If you don’t subscribe to Claude or ChatGPT, connecting OpenRouter through Pi is the easiest pay-as-you-go option.
-
Install Pi
Go to Settings → AI → Models & connections → AI accounts → Pi and click Install and continue to download the runtime.
-
Sign in to OpenRouter
Click Sign in via browser or paste an
sk-or-v1-…key from OpenRouter. Create an account and add credits at OpenRouter. -
Pick and name models
Choose up to 3 models from the OpenRouter catalog, set a display name for the sidebar, and pick a default reasoning effort.
Have gift credits? Promotional or gift credits work right away on designated models in Pi even without an OpenRouter key. If you also add your own OpenRouter key, you can choose in Settings which balance to use first.
Model, reasoning effort, and speed
Switch models and reasoning effort per conversation from the model picker below the message box.
- Model (⌘' / Ctrl+'): Pick any model from your connected providers. Curate which models appear in the picker under Settings → AI → Models & connections → Available models.
- Reasoning effort (⇧⌘E / Ctrl+Shift+E): Adjust within the range supported by the model, from
Lowup toUltra. Light edits work well onLoworMedium; structuring long reports or cross-checking multiple sources benefits fromHighor above. - Response speed: On supported models, choose between
Standard,Fast, andUltrafast. New chats always start onStandard.
Using HamaEditor without AI
Turn off Use AI in Settings → AI → General to hide AI controls and use HamaEditor purely as a local HWP document editor.