Skip to content

Repository files navigation

Ainotepad icon

Ainotepad

Ghost text at the caret.
A lightweight Windows-native text and code editor for writing, notes, and code.

简体中文

CI Latest release GitHub stars Downloads License: MIT

Rust egui Windows native Markdown AI ghost text

Download for Windows · Quick Start · Star History

Ainotepad Paper Cut

Ainotepad ghost text demo

Ainotepad is a lightweight Windows-native text and code editor with one inline ghost-text continuation at the caret. It keeps the writing surface clear, supports Chinese IME, and connects to provider profiles without becoming an IDE or chat sidebar.

Quick Start

Install

Download the Ainotepad installer, or use the portable ZIP.

The v0.1.0 installer is unsigned, so Windows SmartScreen may show an unknown-publisher warning. Verify the download with SHA256SUMS.txt when needed.

Configure a provider

  1. Open Settings with Ctrl+,.
  2. Choose AI Profiles and add or select a profile.
  3. Set the provider, adapter, Base URL, model, and API key.
  4. Save settings. API keys are stored with Windows DPAPI and are not written to config.toml.

DeepSeek, OpenAI, xAI/Grok, Anthropic/Claude, and custom endpoints are supported. Use FIM, Chat Completions, or Responses when the selected provider exposes that adapter.

Use ghost text

Type in a document and pause briefly. A green continuation appears at the caret when a configured provider returns a suggestion.

  • Tab accepts the visible suggestion.
  • Esc dismisses it.
  • Chinese IME composition remains separate from the document and stays anchored to the caret.

Highlights

  • Paper Cut shell with White, Black Green, VS Code, macOS Light, Dark, Lamp, High Contrast, and Custom themes.
  • English, Simplified Chinese, and Follow Windows interface language modes.
  • Multiple isolated API profiles and selectable models.
  • Markdown is the default for new documents; the status bar type selector supports Plain Text, C/C++, C#, Python, Rust, JavaScript/TypeScript, HTML, CSS, JSON, TOML, PowerShell, Batch, and INI.
  • Syntax highlighting for the selected document type, tabs, find/replace, undo/redo, and configurable status information.
  • Native Windows title controls and a portable single-process editor.

Star History

Star History Chart

Build from source

Install the stable Rust toolchain, then run:

cargo test --workspace -- --test-threads=1
cargo build --release -p ainotepad

The portable executable is written to target/release/ainotepad.exe.

Scope

Ainotepad is intentionally a focused editor. It does not include a file tree, LSP, debugger, terminal, plugin system, minimap, multi-caret editing, chat sidebar, Copilot login, or runtime translation downloads.

License

MIT. Copyright 2026 naipi11.

About

Lightweight Windows-native AI text and code notepad with inline ghost-text completion.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages