Multi-provider routing
OpenAI-compatible endpoints (DeepSeek, OpenRouter, Ollama, LM Studio) plus a built-in g4f fallback so a session never dies because a provider did.
A local-first AI workspace for everyone who wants to build, break, understand, and improve technology. Engineer systems, automate workflows, inspect code, experiment with agents, and explore security on systems you own or are authorised to test.
Requires Node.js 22+ and Git. Choose your platform or clone manually.
bash <(curl -fsSL https://raw.githubusercontent.com/BayazidHabibSiddikee/Sword-CLI/main/scripts/install.sh)
Manage anytime: ~/.sword-cli/scripts/install.sh --doctor · --update · --uninstall
git clone https://github.com/BayazidHabibSiddikee/Sword-CLI.git && cd Sword-CLI && npm install && ./sword.mjs up
Starts Companion API + Web UI at http://127.0.0.1:3553 (/keys, /agent, /connections, /knowledge).
Most AI tools ask you to copy code out of your editor, paste it into a browser, then paste the answer back. You lose context, you lose control, and you lose the thread.
One CLI, assembled from the parts that actually matter for shipping code.
OpenAI-compatible endpoints (DeepSeek, OpenRouter, Ollama, LM Studio) plus a built-in g4f fallback so a session never dies because a provider did.
Run /team to put specialised personas in a round-robin discussion — useful when an architecture decision needs more than one point of view.
Consume external MCP servers with sword mcp add or expose SwordCLI's own RAG & skills via sword mcp serve — plus manage connectors in the Web UI.
Local BM25, TF-IDF cosine and SQLite FTS5 retrieval over skills and docs (npm run rag:index), paired with DuckDuckGo web search.
Path validation, session-scoped grants, unified diffs before writes, loop detection and declared degraded mode. You see what changes before it changes.
Launch sword tui in the shell or ./sword.mjs up for the Companion Web UI at 127.0.0.1:3553 with /keys, /agent, /connections, and /knowledge.
Same session, same context. Pick the mode that fits the problem.
Thinking personas shape what to consider and why. Execution specialists define how work is carried out. Combine both to form a focused working agent.
Reasoning perspective · WHAT / WHY
Mechatronics, offensive security, electrical and mechanical systems, firmware, CAD, and technical audits.
Research, knowledge synthesis, systems thinking, and philosophy.
Data-oriented reasoning, vector systems, and general problem solving.
General-purpose reasoning and broad problem exploration.
General-purpose reasoning and cross-domain support.
Design-oriented thinking, visual decisions, and general problem solving.
Software engineering, coding, systems, and refactoring.
Economics-informed reasoning and general analysis.
Creative exploration, ideation, and general reasoning.
Wisdom-oriented reasoning, philosophy, and reflective analysis.
Computing concepts and broad technical reasoning.
Software, computing, and general technical problem solving.
Systems-oriented reasoning and general technical analysis.
Research-led reasoning and knowledge exploration.
Computing concepts and general technical reasoning.
Practical capability · HOW
Application features, implementation, bug fixes, and maintainable code.
UI systems, responsive components, accessibility, and client-side behaviour.
APIs, service layers, database logic, and system integrations.
Linux administration, process management, and operating-system workflows.
Schema design, migrations, query optimisation, and data integrity.
CI/CD, containers, deployment pipelines, and infrastructure configuration.
Test design, automated verification, edge cases, and release confidence.
Failure reproduction, root-cause tracing, and fault isolation.
Authorised security assessment, code review, and vulnerability analysis.
Technical research, documentation analysis, datasheets, and evidence gathering.
Technical guides, API references, architecture records, and runbooks.
Design systems, usability, visual hierarchy, and accessibility review.
Arduino, ESP32, STM32, serial protocols, firmware, and hardware workflows.
ROS 2, control systems, URDF, robot modelling, and simulation.
Branch integration, compatibility checks, release verification, and go/no-go review.
Parametric design, assemblies, DFMA, 3D printing, and STEP/STL output.
The Integration Engineer is verification-only: no file mutation and no network access.
A persona defines the reasoning perspective. A specialist defines the execution capability. A working agent combines both.
This legacy voice roster is separate from the 15 thinking personas and 16 execution specialists above.
Each persona is a stateful agent with its own tools, memory and point of view. Four of them are built for serious engineering work.
Logic puzzle master
Algorithms, benchmarks, complexity analysis and problem generation.
Pragmatic engineer
Git history, diffs, log analysis, CI/CD generation and code review.
Computational mathematician
Symbolic maths, LaTeX, proof verification and maths documents.
ML engineer / architect
Training scripts, metrics, preprocessing, datasets and architecture comparisons.
And the rest of the roster: Izuku Midoriya, Mahina Artemis, Muhan Haswaz, Plastos Jiade, Monk Maecenas and Orko — philosophy, strategy, markets, research, stories and culture.
Launch the companion web workbench with node sword.mjs to configure providers, MCP servers, knowledge, Security Lab, and Engineering Lab — then direct execution from the TUI. Click any view to inspect.
Manage Agents & MCP, Providers & API keys, Documents & knowledge, External connections, and Usage & activity.
Track tool readiness across nmap, nikto, ffuf, semgrep, gitleaks, and trivy with scoped /mission engagements.
Inspect Electronics / PCB (kicad-cli, ngspice), Embedded / Firmware (arduino-cli, esptool), ROS 2, and CAD / 3D tools.
| Browser chatbot | SwordCLI | |
|---|---|---|
| Where it runs | Another tab | Inside your repo + Companion Web UI |
| Project context | You paste it in | Already on disk, retrieved with hybrid RAG |
| Model choice | One provider | Any OpenAI-compatible endpoint + g4f fallback |
| Tools & MCP | Limited plugins | Dual-MCP: consume & serve tools natively |
| File changes | Copy and paste | Diff shown first, approval required |
| Multiple agents | Rarely | /team round-robin built in |
| Data & sessions | In their cloud | Local, durable, yours |
The core CLI is MIT licensed. Paid tiers are being shaped with early users — join the waitlist to help decide what they include.
The full open-source CLI. Forever free.
Packaged installers, signed updates and priority support.
For teams that want shared configuration and governance.
Yes. The CLI is MIT licensed and the source is public. The Pro and Team tiers are about convenience — packaged installers, signed updates, documentation and support — not locking core features away.
You can use any OpenAI-compatible provider (DeepSeek, OpenRouter, Ollama, LM Studio) or the built-in g4f fallback provider. Keys stay on your machine.
Local models and the local hybrid RAG index (BM25 + FTS5 + TF-IDF) work without a network connection. Live web search and remote providers require connectivity.
No. Mutating tools go through an approval gate with a unified diff. You can grant scoped approvals for a session or reject any change.
Run ./sword.mjs up to launch the Express API, local SQLite storage, and React Web UI at http://127.0.0.1:3553 with pages for /keys, /agent, /connections (MCP connectors), and /knowledge.
The current public preview supports Linux only and requires Node.js 22+. Windows and macOS support are planned for a later release.
Found a bug, need help, or want to discuss a collaboration? Reach the SwordCLI team directly.