Installation
Prerequisites
- Python 3.12+ - typesim requires Python 3.12 or higher
- UV - Modern Python package manager (recommended) or pip
Quick Install (UV)
The recommended installation method uses UV:
uv tool install git+https://github.com/pc-style/typesim.gitThis installs typesim globally and makes it available as a command-line tool.
Development Installation
If you want to install from source or contribute:
# Clone the repository
git clone https://github.com/pc-style/typesim.git
cd typesim
# Install dependencies
uv sync
# Or install in development mode
uv pip install -e .Dependencies
typesim uses the following dependencies:
pynput- For keyboard controlgoogle-genai- For Gemini API integration (optional)rich- For TUI interfacepyyaml- For configuration persistenceinquirer- For interactive prompts
These are automatically installed when you install typesim.
Gemini API Setup (Optional)
For AI-powered features like smart rephrasing and synonyms:
- Get a Gemini API key from Google AI Studio
- Set it as an environment variable:
export GEMINI_API_KEY="your-api-key-here"Or add it to your shell configuration file (~/.zshrc, ~/.bashrc, etc.):
echo 'export GEMINI_API_KEY="your-api-key-here"' >> ~/.zshrcIf the Gemini API is unavailable or disabled, typesim falls back to hardcoded alternatives.
macOS Permissions
On macOS, you may need to grant accessibility permissions for keyboard control:
- Go to System Settings → Privacy & Security → Accessibility
- Add your terminal application (Terminal, iTerm2, etc.) to the allowed list
- Restart your terminal
Without these permissions, typesim won't be able to simulate keyboard input.
Verify Installation
After installation, verify typesim is working:
typesim --help
# or
uv run typesimYou should see the typesim main menu.