5-Minute Quickstart
This guide walks you from a fresh install to your first real task in Hya. If you haven’t installed hya yet, follow Installation first.
1. Open Hya in a project folder
cd into any code folder on your computer (or make a scratch folder to try it out) and run hya:
cd ~/my-projecthyaThree things happen right away:
- Hya starts a small background server so your chats stay safe even if you close the terminal.
- The Terminal UI (TUI) opens in front of you.
- The WebUI starts at
http://127.0.0.1:3250—open that address in your browser if you prefer clicking around in a browser tab.
Try typing hello and pressing Enter. Because you haven’t added an API key yet, Hya replies using its built-in offline echo model (hya/offline). That confirms everything is working.
2. Connect an AI model
You can add an API key without ever leaving Hya:
- Type
/keyand press Enter to open the Provider View. - Press
ato add a provider:- Name: pick any short nickname, like
anthropicoropenai. - Protocol: pick
anthropic,openai-response(for OpenAI),openai(for OpenAI-compatible servers like OpenRouter, DeepSeek, or Ollama/vLLM), orgoogle(for Gemini). Every protocol butopenaicomes from a provider bundle, all enabled by default;hya --bareoffers onlyopenai(see Where provider kinds come from). - Base URL: e.g.
https://api.anthropic.com/v1orhttps://api.openai.com/v1. - API key: paste your key and press Enter (your key is hidden as bullets).
- Name: pick any short nickname, like
- Hya fetches the model list automatically and opens a picker so you can select your model. Press Esc twice to return to your chat.
Prefer setting it up from the terminal or signing in with a subscription instead? Quit Hya (Ctrl+C twice) and run one of these:
# Guided terminal wizardhya provider add
# Or sign in with a ChatGPT / Codex or Grok subscriptionhya auth login codex --oauth openai-codexhya auth login grok --oauth grok-build3. Ask Hya to read and change code
Now type a real request in the message box and press Enter:
Read this folder and tell me how the project is structured.Want to point Hya at a specific file? Type @ followed by part of the filename (for example @README.md). A file menu pops up—press Tab or Enter to insert it:
Add a short troubleshooting section to @README.mdApproving actions
When Hya wants to edit a file or run a terminal command, a yellow permission prompt appears above the input box:
- Press
1to Allow once. - Press
2to Always allow this command in the future. - Press
3(or Esc) to Deny it.
4. Check changes or undo them
- Type
/diffto see every line changed in your Git folder side-by-side. Press Esc to close it. - Don’t like what Hya just changed? Type
/undo. Hya removes the last turn and puts your edited files back the way they were before. (/redobrings them back if you change your mind.)
5. Handy keys to remember
You don’t need to memorize everything—press ? on an empty input box anytime to search every key and command. Here are the ones you’ll use every day:
| Input | What it does |
|---|---|
Enter |
Send your message |
Shift+Enter or Ctrl+J |
Add a new line without sending |
@filename |
Pick a file from your project to mention |
!git status |
Run a shell command directly inside the chat |
/ (on empty input) |
Open the slash-command menu |
/model |
Switch AI models |
/effort |
Change how hard the model thinks (low, high, max) |
/new |
Start a fresh chat |
/sessions |
Switch between past chats (Ctrl+A shows archived ones) |
Esc |
Stop a running turn, or close an open menu |
Ctrl+C twice (or /exit) |
Close Hya and archive the current chat |
Ctrl+D (on empty input) |
Close Hya while leaving the chat running in the background |
Next up: see Common Workflows for practical ways to use Hya on real tasks.