Hacker GitHub

← All repos

simonw/llm

View on GitHub ↗ ★ 12,691 Python

Access large language models from the command-line

78 mentions on Hacker News by 53 people: 8 stories, 70 comments · first 2023-05-19 · latest 2026-08-05

Mentions per year 78 mentions · busiest year 2025 (39)
20082026
  1. …my three main open source projects: https://github.com/simonw/datasette/graphs/code-frequency https://github.com/simonw/llm/graphs/code-frequency https://github.com/simonw/sqlite-utils/graphs/code-frequency
  2. …found a simple issue in one of my projects with FOUR agent-generated PRs all posing a fix for it: https://github.com/simonw/llm/issues/1466
  3. isn't that what Simon Willison's `llm` does? edit: [link]( https://github.com/simonw/llm )
    comment by niobe · 2026-02-03 · in The Codex App
  4. ▲ 1
    Show HN: GenAI Prompts as "Native" Programs
    story by tgalal · 2026-01-21 · 0 comments
  5. When I'm writing a script that requires some kind of call to an LLM, I use this: https://github.com/simonw/llm . This is of course cross-platform and works with both models accessible through an API and local ones. I'm afraid this might…
  6. Yes, I use simonw's `llm` for that: https://github.com/simonw/llm Example: $ man tar | llm "how do I extract test.txt from a tar.gz"
    comment by mr_mitm · 2025-12-22 · in A guide to local coding models
  7. …issue about that here - it's something I'm stewing on but will take quite some work to get right: https://github.com/simonw/llm/issues/1314 I've been spending more of my time focusing on other projects which make use of LLM, in particular…
  8. He made it: https://github.com/simonw/llm
    comment by fauigerzigerk · 2025-12-09 · in Mistral releases Devstral2 and Mistral Vibe CLI
  9. …it to Simon Willison's `llm` tool. https://gist.github.com/abdusco/118a6a3ab41a0a1d2a5f8813f789... https://github.com/simonw/llm > youtube_transcript.py 'https://www.youtube.com/watch?v=DAX2_mPr9W8' | llm 'give me keypoints, ignore…
  10. …loop and branch and combine them with other functions. [0] https://github.com/dave1010/hubcap [1] https://github.com/simonw/llm
    comment by dave1010uk · 2025-11-06 · in You should write an agent
  11. https://github.com/simonw/llm proposes some hints to run in local
  12. There is also the llm tool written by simonwillison: https://github.com/simonw/llm I personally use "claude -p" for this
  13. …ask. I don't though, so I asked it at a higher level: Claude, add tree-structured conversations to https://github.com/simonw/llm . Claude responded with a whole design doc, starting with database schema change (using the same column name…
    comment by fragmede · 2025-09-30 · in Claude Sonnet 4.5
  14. …for creating code/documents I have web_search and web_fetch The user wants me to: Checkout https://github.com/simonw/llm Run pip install -e '.[test]' Run pytest But I don't have a tool that can: Clone git repositories Run shell commands…
    comment by icelancer · 2025-09-29 · in Claude Sonnet 4.5
  15. …its brand new Python/Node.js code interpreter mode. Try this prompt and see what happens: Checkout https://github.com/simonw/llm and run the tests with pip install -e '.[test]' pytest I then had it iterate on a pretty complex database…
    comment by simonw · 2025-09-29 · in Claude Sonnet 4.5
  16. …been using LLM-assistance for my larger open source projects - https://github.com/simonw/datasette https://github.com/simonw/llm and https://github.com/simonw/sqlite-utils - for a couple of years now. Also literally hundreds of smaller…
  17. ▲ 11
    What's your favorite CLI tool for integrating LLMs into your terminal workflow?
    story by menisadi · 2025-08-10 · 8 comments
  18. Working on that now! https://github.com/simonw/llm/issues/1229
  19. …myself why I wouldn't just write this in my own way, but admittedly it can be fun. Something like https://github.com/simonw/llm seems way more intuitive (to me) [0]: https://github.com/mark3labs/mcp-go
    comment by TechDebtDevin · 2025-08-07 · in An LLM does not need to understand MCP
  20. How does this differ from this project? https://github.com/simonw/llm
  21. …`mods` for this https://github.com/charmbracelet/mods other people use simon willison's `llm` tool https://github.com/simonw/llm Both allow you to switch between models, send short prompts from a CLI, optionally attach some context. I…
    comment by peterldowns · 2025-06-25 · in Gemini CLI
  22. Tip: You might want to use `uv tool install llm --with llm-ollama`. ref: https://github.com/simonw/llm/issues/575
    comment by usagisushi · 2025-06-25 · in Web Translator API
  23. …by simply specifying their latest fancy new model. [1]: https://github.com/baalimago/clai [2]: https://github.com/simonw/llm
    comment by baalimago · 2025-06-25 · in Gemini CLI: your open-source AI agent
  24. …into a shell environment. Check out examples like piping context into and out of the `llm` command. https://github.com/simonw/llm
    comment by knowaveragejoe · 2025-06-24 · in MCP is eating the world
  25. simonw/llm is a CLI for LLMs: https://github.com/simonw/llm `llm --help`: https://llm.datasette.io/en/stable/help.html#llm-help simonw/llm plugin directory: https://llm.datasette.io/en/stable/plugins/directory.html#pl... From…
  26. https://github.com/simonw/llm
  27. …tool, which is possible in Python but a bit messy. I have an open issue to make that better here: https://github.com/simonw/llm/issues/1111
  28. …problems in the past where plugins with expensive imports (like torch) slow everything down a lot: https://github.com/simonw/llm/issues/949 I'm interested in tracking down the worst offenders and encouraging them to move to lazy imports…
  29. …a plugin hook that lets plugins take over the display of content by the tool. Just filed an issue: https://github.com/simonw/llm/issues/1112 Would love to get your feedback on it, I included a few design options but none of them feel 100%…
  30. …renderer I wrote just for this tool: https://github.com/day50-dev/Streamdown More background: https://github.com/simonw/llm/issues/12 (Also check out https://github.com/day50-dev/llmehelp which features a tmux tool I built on top of…
  31. …all of your installed plugins and then re-installing any that go missing - issue for that is here: https://github.com/simonw/llm/issues/575
  32. "don't actually do anything with this stuff" - https://github.com/simonw/llm/compare/0.25...0.26 138 commits to implement this new feature.
  33. You can probably achieve what you want with https://github.com/simonw/llm and a little bit of command line. Not sure what OS you're on, but in Windows it might look like this: FOR %%F IN (*.txt) DO (TYPE "%%F" | llm -s "execute this…
    comment by xnx · 2025-05-01 · in Claude Integrations
  34. Could you maybe make use of Simon Willsons [LLM lib/app]( https://github.com/simonw/llm )? It has great LLM support (just pass in the model to use) and records everything by default.
  35. …to a codebase. Here's a recent example - 51 comments and they were almost all me talking to myself https://github.com/simonw/llm/issues/617
    comment by simonw · 2025-04-14 · in Engineers who won't commit
  36. …to Responses in order to support this. Could take me a while to add support for it to my LLM tool: https://github.com/simonw/llm/issues/839
    comment by simonw · 2025-03-19 · in OpenAI's o1-pro now available via API
  37. I feel like the incumbent for running llm prompts, including locally, on the cli is llm: https://github.com/simonw/llm?tab=readme-ov-file#installing-... How does this compare?
    comment by TheDong · 2025-03-03 · in Show HN: Prompting LLMs in Bash scripts
  38. …to try it out via their API you can run it through my LLM tool using uvx like this: uvx --with 'https://github.com/simonw/llm/archive/801b08bf40788c09aed6175252876310312fe667.zip' \ llm -m gpt-4.5-preview 'impress me' You may need to set…
    comment by simonw · 2025-02-27 · in GPT-4.5
  39. https://github.com/simonw/llm It is linked to in the article - a brilliant utility from Simon.
    comment by nickrj · 2025-02-19 · in My LLM codegen workflow
  40. ▲ 2
    Show HN: Repo-guide – AI-generated docs for codebase exploration and onboarding
    story by wolfmanstout · 2025-02-18 · 0 comments
  41. …a lot of this stuff - there's a commandline tool as well * usable cli ai setup: simonw's llm ( https://github.com/simonw/llm ) + openrouter ( https://github.com/simonw/llm-openrouter ) + free models ( https://openrouter.ai/models?max_price=…
    comment by kristopolous · 2025-02-09 · in Some terminal frustrations
  42. …and a walrus' \ -o reasoning_effort high Output (comparing that with the default reasoning effort): https://github.com/simonw/llm/issues/728#issuecomment-262832... (If anyone has a better demo prompt I'd love to hear about it)
    comment by simonw · 2025-01-31 · in OpenAI O3-Mini
  43. ▲ 2
    LLM: Access large language models from the command-line
    story by thunderbong · 2025-01-23 · 0 comments
  44. …a few of my projects and it's fantastic - https://llm.datasette.io for example uses MyST Markdown: https://github.com/simonw/llm/tree/main/docs
  45. …There's also Simon Wilson's llm cli: https://llm.datasette.io/en/stable/ https://github.com/simonw/llm Both might help getting started with some LLM experiments.
  46. …\ uv run jupyter notebook (Which inspired me to add a new LLM feature: llm keys get openai - https://github.com/simonw/llm/issues/623 )
  47. …directly [2]. Etc, etc. -- 1: https://github.com/Aider-AI/aider/blob/e76704e261647348fd7c1... 2: https://github.com/simonw/llm/blob/d654c9521235a737e59a4f1d7...
  48. https://github.com/simonw/llm
  49. …[1], he uses GitHub CoPilot [2]. - (a few more golden nuggets but I can't recall them all) [1] https://github.com/simonw/llm [2] A tip he gives is because CoPilot 'sees' what's in the current file, you can copy/paste relevant code from…
  50. …-- I know Simon and the community are mainly noodling over the best command line UX for that: https://github.com/simonw/llm/issues/331