Show HN: Llmswap – Universal AI SDK and Code Generation CLI

4 sreenathmenon 0 9/10/2025, 7:04:54 PM sreenathmenon.com ↗
I was constantly switching between my terminal and ChatGPT/Claude/Gemini for code help. Built llmswap 4.1.1 to fix this.

Now I just type: llmswap generate "command I need"

Real examples that save hours:

Site emergency - needed to debug compressed logs:

llmswap generate "grep through gzipped nginx logs for errors"

Got: zgrep -i "error\|fail" /var/log/nginx/*.gz | head -50

That regex everyone googles:

llmswap generate "extract all IP addresses from log file"

Got: grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' access.log | sort | uniq -c

Complex configs? No problem:

llmswap generate "docker compose for Prometheus Grafana monitoring" > stack.yml

80 lines of production-ready YAML.

The killer feature - works INSIDE vim:

:r !llmswap generate "MongoDB create user with read/write access"

Got: db.createUser({user:"appuser",pwd:"password",roles:[{role:"readWrite",db:"myapp"}]})

Code appears at cursor. No browser. No copy-paste.

Supports 8 providers (OpenAI, Claude, Gemini, Groq, IBM Watson, Ollama, etc). Use whatever API keys you already have. No additional subscriptions.

GitHub: https://github.com/sreenathmmenon/llmswap

PyPI: https://pypi.org/project/llmswap/

Comments (0)

No comments yet