Comparison
llm-self-defense vs llm
Verdict
Pick llm-self-defense when license: llm-self-defense is BSD-3-Clause, llm is Apache-2.0; pick llm when license: llm is Apache-2.0, llm-self-defense is BSD-3-Clause.
Markdown twin · llm-self-defense alternatives · llm alternatives
GraphCanon updated today
vs
Trust & integrity
| Signal | llm-self-defense | llm |
|---|---|---|
| Maintenance | Dormant (781d since push) As of today · github_public_v1 | Very active (1d since push) As of 1d · github_public_v1 |
| Provenance | Not a fork · Organization account As of today · github_public_v1 | Not a fork · Personal account As of 1d · github_public_v1 |
| Security (OSV) | 157 low (157 low) As of today · osv@v1 | No lockfile As of 1d · none |
Tagline
- llm-self-defense
- LLM Self Defense: By Self Examination, LLMs know they are being tricked
- llm
- Access large language models from the command-line
Stars
- llm-self-defense
- 52
- llm
- 12k
Forks
- llm-self-defense
- 7
- llm
- 920
Open issues
- llm-self-defense
- 7
- llm
- 645
Language
- llm-self-defense
- Python
- llm
- Python
Adopt for
- llm-self-defense
- -
- llm
- Decision-critical facts for 'llm'
Persona
- llm-self-defense
- -
- llm
- -
Runtime
- llm-self-defense
- -
- llm
- -
License
- llm-self-defense
- BSD-3-Clause
- llm
- Apache-2.0
Last pushed
- llm-self-defense
- May 21, 2024
- llm
- Jul 9, 2026
Categories
- llm-self-defense
- Developer Tools, Inference & Serving, LLM Frameworks
- llm
- Inference & Serving, LLM Frameworks
Trust and health
Maintenance
- llm-self-defense
- Dormant (18%)
- llm
- Very active (96%)
Days since push
- llm-self-defense
- 781d
- llm
- 1d
Open issues (now)
- llm-self-defense
- 7
- llm
- 645
Owner type
- llm-self-defense
- Organization
- llm
- User
Security scan
- llm-self-defense
- 157 low (157 low)
- llm
- No lockfile
Full report
- llm-self-defense
- Trust report
- llm
- Trust report
Shared compatibility
- Python · llm-self-defense: Python runtime · llm: Python runtime
Choose llm-self-defense if…
- License: llm-self-defense is BSD-3-Clause, llm is Apache-2.0.
- Tags unique to llm-self-defense: python.
- Also covers Developer Tools.
When NOT to use llm-self-defense
- Last GitHub push was 782 days ago (dormant maintenance, May 21, 2024). Validate activity before betting a new project on llm-self-defense.
- Developer Tools: A gateway is overkill when you're pinned to a single provider and model.
- Inference & Serving: Self-hosting rarely beats a hosted API on cost until you have steady, high-volume traffic.
- LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves.
Choose llm if…
- License: llm is Apache-2.0, llm-self-defense is BSD-3-Clause.
- Requirements: - Installation supports multiple methods including `pip`, Homebrew (with caveats noted), `pipx`, and `uv`.; - Requires an OpenAI API key for certain functionalities..
- Tags unique to llm: ai, llms, openai.
- - You prioritize command-line interaction over graphical interfaces, as llm is designed to provide a seamless CLI experience with multiple installation methods.
When NOT to use llm
- - If you require real-time visual feedback or a graphical interface for interacting with language models, as llm is strictly command-line-based.
- - If your primary focus is on model training rather than inference or serving, since llm is aimed at accessing and using pre-trained models.
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (poloclub/llm-self-defense) · observed Jul 11, 2026
- GitHub forks (poloclub/llm-self-defense) · observed Jul 11, 2026
- Last push (poloclub/llm-self-defense) · observed May 21, 2024
- License file (BSD-3-Clause) · observed Jul 11, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (simonw/llm) · observed Jul 11, 2026
- GitHub forks (simonw/llm) · observed Jul 11, 2026
- Last push (simonw/llm) · observed Jul 9, 2026
- License file (Apache-2.0) · observed Jul 11, 2026
- Decision facts (enrichment) · observed Jul 11, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
GitHub stars on cards: llm-self-defense 52 · llm 12k (synced Jul 11, 2026).
Common questions
- What is the difference between llm-self-defense and llm?
- llm-self-defense: LLM Self Defense: By Self Examination, LLMs know they are being tricked. llm: Access large language models from the command-line. See the comparison table for live GitHub stats and shared categories.
- When should I choose llm-self-defense over llm?
- Choose llm-self-defense over llm when License: llm-self-defense is BSD-3-Clause, llm is Apache-2.0; Tags unique to llm-self-defense: python; Also covers Developer Tools.
- When should I choose llm over llm-self-defense?
- Choose llm over llm-self-defense when License: llm is Apache-2.0, llm-self-defense is BSD-3-Clause; Requirements: - Installation supports multiple methods including
pip, Homebrew (with caveats noted),pipx, anduv.; - Requires an OpenAI API key for certain functionalities.; Tags unique to llm: ai, llms, openai; - You prioritize command-line interaction over graphical interfaces, as llm is designed to provide a seamless CLI experience with multiple installation methods. - When should I avoid llm-self-defense?
- Last GitHub push was 782 days ago (dormant maintenance, May 21, 2024). Validate activity before betting a new project on llm-self-defense. Developer Tools: A gateway is overkill when you're pinned to a single provider and model. Inference & Serving: Self-hosting rarely beats a hosted API on cost until you have steady, high-volume traffic. LLM Frameworks: Avoid a framework for a single prompt-and-retrieve call; the abstraction can cost more than it saves.
- When should I avoid llm?
- - If you require real-time visual feedback or a graphical interface for interacting with language models, as llm is strictly command-line-based. - If your primary focus is on model training rather than inference or serving, since llm is aimed at accessing and using pre-trained models.
- Is llm-self-defense or llm more popular on GitHub?
- llm has more GitHub stars (12,172 vs 52). Stars measure visibility, not whether either tool fits your constraints.
- Are llm-self-defense and llm open source?
- Yes - both are open-source projects on GitHub (llm-self-defense: BSD-3-Clause, llm: Apache-2.0).
- Where can I find alternatives to llm-self-defense or llm?
- GraphCanon lists graph-backed alternatives at llm-self-defense alternatives and llm alternatives (llm-self-defense markdown twin, llm markdown twin), ranked by typed relationship edges rather than popularity votes.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, llm-self-defense or llm?
- llm-self-defense: Dormant. llm: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for llm-self-defense and llm?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: llm-self-defense trust report; llm trust report.