Skip to main content

AI-powered text completion for any text field using Claude

Project description

SmartType

AI-powered text completion for anyone who needs to type less.

SmartType uses Claude AI to turn abbreviated, incomplete, or shorthand text into fully formed, grammatically correct sentences — in any text field, in any application.

Why SmartType exists

This software was written by an ALS patient, for ALS patients.

When you live with ALS, you rely on eye tracking and on-screen keyboards to communicate. Every single character costs effort and time. If you were once a fast touch typist, the difference is devastating. A message that used to take seconds now takes minutes. Conversations move on without you. The frustration builds up, especially in daily communication — messaging friends, writing emails, or using voice synthesis systems.

SmartType changes that. Instead of painstakingly typing out every word, you type just enough for the AI to understand what you mean:

ih mss mrgn zm arzt ghn
→ Ich muss morgen zum Arzt gehen.
cn yu pls hlp me wth ths
→ Can you please help me with this?
wnt we actly go swmmng
→ Do we actually want to go swimming?

Type less. Say more. Stay in the conversation.

Features

  • Optimized for eye tracking — all shortcuts are designed for the on-screen keyboard of the Tobii PCEye 5, so everything can be triggered without closing the on-screen keyboard
  • Works in any text field — Signal, Word, Element, browsers, email, voice synthesis software
  • Understands heavily abbreviated text — skip vowels, shorten words, leave out grammar
  • Multi-language — German and English, switchable with a hotkey
  • Two modes:
    • Full line mode (default): Completes everything from cursor backward
    • Marker mode: Place ... before the text you want completed
  • Audio & visual feedback — beep sounds and on-screen toast notifications
  • Zero setup — API key is asked on first run and saved automatically
  • Customizable — hotkeys, language, AI model, and prompts are all configurable

Installation

Windows Installer (recommended)

Download the latest SmartType-Setup.exe from Releases. No Python installation required — everything is included.

From PyPI

pip install smarttype-ai

From source

git clone https://github.com/twagner/smarttype.git
cd smarttype
pip install .

With Conda

conda env create -f environment.yml
conda activate smarttype
pip install .

Getting started

  1. Get a free Claude API key from console.anthropic.com
  2. Run SmartType:
smarttype

On first launch, it will ask for your API key and save it automatically.

You can also provide the key in a .env file:

CLAUDE_API_KEY=sk-ant-...

Usage

smarttype          # start SmartType
python -m smarttype  # alternative

Hotkeys

Hotkey Action
Ctrl+Shift+J Complete text at cursor
Ctrl+Shift+G Toggle language (DE/EN)
Ctrl+Shift+H Toggle marker mode on/off
Ctrl+C Exit SmartType

How it works

  1. Type your abbreviated text in any text field
  2. Place the cursor at the end
  3. Press Ctrl+Shift+J
  4. SmartType selects the text, sends it to Claude, and replaces it with the completed version

Examples

Abbreviated German:

ih hbe sps bei vln din abr bsors brtsple
→ Ich habe Spaß bei vielen Dingen, aber besonders bei Brettspielen.

Abbreviated English:

i hve fun mny thngs but espcly bord gmes
→ I have fun with many things, but especially with board games.

Minimal input, full output:

me feeling good. no pain
→ I'm feeling good. I have no pain.

Marker mode — when you only want part of a line completed:

Dear Dr. Smith, ...i wntd to ask abt my nxt appntmnt
→ Dear Dr. Smith, I wanted to ask about my next appointment.

Configuration

All settings via environment variables or .env file:

Variable Default Description
CLAUDE_API_KEY (required) Your Anthropic API key
SMARTTYPE_HOTKEY ctrl+shift+j Completion hotkey
SMARTTYPE_LANG_HOTKEY ctrl+shift+g Language toggle hotkey
SMARTTYPE_MARKER_HOTKEY ctrl+shift+h Marker mode toggle hotkey
SMARTTYPE_MODEL claude-sonnet-4-5-20250929 Claude model
SMARTTYPE_LANGUAGE de Starting language (de or en)

Custom prompts

Place a prompt_de.txt or prompt_en.txt in your working directory to override the built-in prompts. This lets you fine-tune how the AI interprets and completes your text.

Requirements

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smarttype_ai-1.1.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smarttype_ai-1.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file smarttype_ai-1.1.1.tar.gz.

File metadata

  • Download URL: smarttype_ai-1.1.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for smarttype_ai-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c627adf5353455e44317243645e1410996e1c3ca0a949f153e1f8026a4cf4ccb
MD5 cd330386b9c47465f5227a0787dfd1ef
BLAKE2b-256 cb5c7f3d6f15bb8f8e3ac4d0456187f80d46a15242b9ae7ab45af73aa8092a11

See more details on using hashes here.

File details

Details for the file smarttype_ai-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: smarttype_ai-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for smarttype_ai-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 669eba87b982bf255e4952f28f9efc114537702b015c37ac1e921b7d1f0bc8cd
MD5 cea167136ad48f52b15eb563ee0b99b6
BLAKE2b-256 ed98dce7f9032ad99d739fc6e2aa8e3a6fb130e20967d70b55bf711251459834

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page