Skip to main content

AI terminal assistant powered by OpenRouter — minimal, fast, developer UX

Project description

hitmos

AI terminal assistant powered by OpenRouter — minimal, fast, developer UX.

Package version Supported Python versions Monthly downloads Total downloads GitHub Stars


Source Code: https://github.com/ndugram/hitmos


Hitmos is a modern AI terminal assistant for developers, powered by OpenRouter. It brings a Claude Code–styled UX to your terminal — live markdown streaming, interactive model switching, project context injection, and Tab completion, all with zero latency overhead.

Key features:

  • Streaming — responses stream token-by-token with live Markdown rendering via rich.
  • Multi-model — switch between DeepSeek, Gemini, Claude, GPT-4o, Llama, and more with an interactive arrow-key picker.
  • Project context — automatically injects your project files into the system prompt so the model can answer project-specific questions.
  • Tab completion/model <Tab> lists all available models; / completes all commands.
  • Minimal UX — Claude Code–inspired welcome panel, status lines, clean > prompt.
  • Fast — built on fasthttp-client with full async SSE streaming.
  • Configurable — API key via env (OPEN_TOKEN, OPENROUTER_API_KEY) or ~/.hitmos/config.toml.

Requirements

Python 3.13+

Hitmos depends on:

Installation

$ pip install hitmos

---> 100%

Quickstart

Save your API key

$ hitmos login

Or set an environment variable:

$ export OPEN_TOKEN=sk-or-...

Start chatting

$ hitmos

You will see:

╭─────────────────────────────────────────────────────╮
│                                                     │
│  ✻  Welcome to Hitmos                               │
│                                                     │
│  /help for commands                                 │
│                                                     │
╰─────────────────────────────────────────────────────╯

 ◆ ~/my-project
 ◆ deepseek/deepseek-chat
 ◆ context 12 KB

>

Ask anything about your project:

> what does this project do?
> add error handling to client.py
> explain the streaming logic

Commands

Command Description
/help Show available commands
/model Interactive model picker (↑↓ + Enter)
/model <name> Switch model directly
/clear Clear conversation history
/reset Reset context
/exit Exit Hitmos

Switch model interactively

Type /model and press Enter to open the arrow-key picker:

? Select model  (↑↓ navigate, Enter confirm, Ctrl+C cancel)
❯ deepseek/deepseek-chat                   DeepSeek Chat · fast, cheap, great for code
  deepseek/deepseek-r1                     DeepSeek R1 · reasoning model
  google/gemini-2.5-flash                  Gemini 2.5 Flash · fast multimodal
  google/gemini-2.5-pro                    Gemini 2.5 Pro · powerful multimodal
  anthropic/claude-3.5-haiku               Claude 3.5 Haiku · fast Anthropic
  anthropic/claude-sonnet-4-5              Claude Sonnet 4.5 · balanced Anthropic
  openai/gpt-4o-mini                       GPT-4o Mini · OpenAI fast
  openai/o4-mini                           o4-mini · OpenAI reasoning
  meta-llama/llama-3.3-70b-instruct        Llama 3.3 70B · open source
  mistralai/mistral-small-3.2-24b-instruct Mistral Small 3.2 · lightweight

Or use Tab completion: type /model deep then press Tab.

Configuration

Hitmos resolves the API key in this order:

  1. OPEN_TOKEN environment variable
  2. OPENROUTER_API_KEY environment variable
  3. ~/.hitmos/config.toml

Config file format:

token = "sk-or-..."
model = "deepseek/deepseek-chat"

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

This project is licensed under the terms of the MIT license.

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

hitmos-0.0.6.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

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

hitmos-0.0.6-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file hitmos-0.0.6.tar.gz.

File metadata

  • Download URL: hitmos-0.0.6.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hitmos-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ec3fc7b0fecccfab8867edfa00af8336a7764f1d0bb6d4d77d80a1ca391d0dd3
MD5 238a3781478fa6cb26e8787a06e719f6
BLAKE2b-256 b03c8db52cd8ebed0bd2bff7999417781dd3e685df513bb01f50ee99f65e8d8a

See more details on using hashes here.

File details

Details for the file hitmos-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: hitmos-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hitmos-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0ae7a3f6b2f3f659cc4cd6f15492b4a7ae17c5826792e9ae9c3a7633fee48ec6
MD5 e2ca24f88dd4cad4f06038313f73be8b
BLAKE2b-256 e6c306b537b2f1c5456d0cbdc883b83672920211ad2c377292c14105f23ef02b

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