Connect a local CLI and chat with AI
Your goal
Ask through a signed-in Codex or Codely CLI with explicit note references.
Before you start
Install the CLI using its official instructions and sign in from a terminal.
Steps
Install your chosen CLI following its official instructions and sign in from a normal terminal. Open AI chat, choose the provider, and reconnect if necessary. Select text in a note, then choose Add to AI chat. Review the reference cards and the Current note checkbox before sending. The configured model service may receive your question, selected text, current note and retrieved evidence.
Chats are organized by topic and stored in the app's private configuration directory. Stop keeps received text. Refresh/restart reconnects to existing history without automatically resending a question. Keep the CLI's own native conversation records for restoration.
What to expect
History persists by topic; stopping keeps the response already received.
If it does not work
If the CLI is missing, check terminal availability and PATH. Renew expired login in the CLI.
Next steps
- Review AI changes and save a draft
- Let AI modify the current design
- Understand local data and external access