rakanssh/hakawati
关于
Free OSS AI text adventures for PC and Mobile. Bring your own AI (ChatGPT sub, API keys, local models). Cross-device E2EE sync!
人工智能与机器学习实测星标增长
- 24小时
- +1
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Hakawati

Hakawati is a free and open-source AI text adventure for Windows, macOS, Linux, Android, and iOS. Bring your own inference with a ChatGPT sub, API key, or local model.
Your tales and scenarios are saved on-device. You can also make a Hakawati cloud account for free end-to-end encrypted tale sync between devices.
Download · Website · Changelog · Report a bug
- Game modes
- Getting started
- Tales and scenarios
- Hakawati assistant
- Accounts and cloud
- Development
- Support and license
Game modes
Story Teller
Classic mode where the AI narrator makes up the story as you play.

Game Master
The AI narrates and also keeps your character's inventory and stats up to date. This mode is experimental. It needs a model that supports tool calling, and some models handle it much better than others.

Getting started
- Install the latest release for your system.
- Open Settings → AI Setup, choose Add a connection, pick and configure a provider. Enter an API key if it asks for one. For a model on your own computer, pick Local. Hakawati looks for a running server, or you can enter its address.
- Choose a Narrator model. The Helper, which writes generated scenarios, story cards, and summaries, uses the Narrator's model unless you pick another.
- Press Quickstart on Home to have a tale made for you, or open a scenario and press Start Tale.
Hakawati doesn't come with a model or API credits. Your requests go to the provider or local server you set up. There are presets for OpenRouter, OpenAI, and NanoGPT, and Another provider takes any OpenAI-compatible address. For LM Studio, Ollama, LocalAI, and similar tools, start the model server before you connect.
Each turn, pick how your input is read: Act, Say, Story, or Direct. Continue has the narrator carry on without you. You can edit any passage, retry a reply, and undo or redo turns. Tales save as you play and show up under Tales.
To talk instead of typing, or to hear the story read aloud, set up Speech to Text and Text to Speech in AI Setup. Language, themes, and reading settings are under Appearance.
Tales and scenarios
A tale is a game in progress. A scenario is a starting point you can reuse for as many tales as you like. You can publish scenarios for other players to use!
Editing a scenario
Everything in the editor, including the name, description, and cover, is saved as one draft.
| Field | What it's for |
|---|---|
| Name, description, and cover | How the scenario looks in your library and the public catalog. The AI never sees the description. |
| AI Instructions, Plot, and Author's Note | What the narrator is told to follow and keep in mind. |
| Opening Text | The first passage of every new tale. |
| Game mode | Story Teller or Game Master. |
| Stats and inventory | Where the character starts in Game Master mode. |
| Story cards | Notes on characters, places, and things. The AI gets a card when its triggers match, or always if it's pinned. |
Save draft keeps your changes on your device. Publish, or Publish update for a scenario you've published publicly before, shows a preview of the name, description, and cover, then publishes the whole draft with the tags you pick. Edits after that stay in the draft until you publish again. Hakawati shrinks covers before uploading them.
While you play, the story panel on the right has tabs for Hakawati, the tale's Story and Cards, the Character in Game Master mode, the AI model, and Display settings.
Scenario questions
A scenario can be scripted to ask for player input to customize tales:
Your name is ${What is your name?}.
Your ship is ${What is your ship's name? | options: The Skipper, Nebula}.
The answers fill in the placeholders in the new tale. A question that appears twice is only asked once, with answers reused. See Scenario questions
Hakawati assistant
The app has a built-in assistant, also called Hakawati, that can do most things in the app for you. Open it with the Hakawati button or Ctrl+K (⌘K on macOS) and ask in plain words.
It'll use tool-calling to read your scenarios, tales, edit them, make story cards, and do pretty much anything other than playing the game.
Accounts and cloud
You don't need a Hakawati account to play or to make scenarios. You can also browse public scenarios in Discover and start tales from them without signing in.
An account adds tale sync and scenario publishing. Sign in and manage sync under Settings → Account & Sync.
Sync is end-to-end encrypted, so keep your recovery key safe. You can activate new devices via QR codes on an old device or by using the recovery key.
Development
Prerequisites
- Node.js 22.12 or newer and npm.
- The stable Rust toolchain and the platform dependencies in Tauri's prerequisites.
cargo-aboutfor bundled license notices.
Run the desktop app
git clone https://github.com/rakanssh/hakawati.git
cd hakawati
npm ci
cargo install cargo-about --locked
npm run licenses:generate
npm run tauri dev
To use the hosted services from a development or local build, add this to
.env.local:
VITE_HAKAWATI_SYNC_SERVER_URL=https://api.hakawati.net
Build locally
npm run tauri -- build --config src-tauri/tauri.test.conf.json -- --locked
Browser preview
npm run dev:browser
Then open http://127.0.0.1:1422. The preview runs the UI on sample tales and scenarios in an in-memory SQLite database, with scripted narration. Reloading resets the samples.
Checks
npm run typecheck
npm run lint
npm run format
npm run i18n:check
npm run test:run
npm run build
cargo test --locked --manifest-path src-tauri/Cargo.toml
The app is built with Tauri 2, React 19, TypeScript, Vite, Tailwind CSS, shadcn/ui, TanStack Router, and Zustand, and keeps tales and scenarios in SQLite.
Support and license
Report bugs and request features in GitHub Issues. For your account, privacy, or anything else, email [email protected].
Hakawati is licensed under the GNU GPL v3.0 or later.
Desktop builds include third-party license notices in LICENSES/, and
npm run licenses:generate regenerates them.
© 2025–2026 Rakan AlShammari
探索相关项目
加载中…