Linux Preview Release · Local-first · MIT licensed

Built for hackers and engineers.
Open to everyone.

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.

Node.js 22+ Linux installer Automated test suite
~/projects/atlas — sword tui DEMO
session persisted · dual-MCP ready · g4f fallback active
BUILT FOR
Software engineersEmbedded & robotics buildersEthical hackersSecurity researchersOpen-source makers
QUICK INSTALL

Up and running in one command.

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

Linux · Preview release
THE PROBLEM

Another chat window isn't a workflow.

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.

The usual loop

  1. Copy the file into a chat window
  2. Explain the project again, from scratch
  3. Get an answer you can't quite apply
  4. Repeat when the next error shows up

With SwordCLI

  1. Ask from inside the repo — context is already there
  2. Switch models mid-session when one struggles
  3. Inspect a real diff before any file is written
  4. Approve, reject, or roll back — sessions persist
CAPABILITIES

Everything you need. Nothing you don't.

One CLI, assembled from the parts that actually matter for shipping code.

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.

Multi-agent team mode

Run /team to put specialised personas in a round-robin discussion — useful when an architecture decision needs more than one point of view.

Dual-MCP architecture

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.

Hybrid RAG + live search

Local BM25, TF-IDF cosine and SQLite FTS5 retrieval over skills and docs (npm run rag:index), paired with DuckDuckGo web search.

Approval gates you can trust

Path validation, session-scoped grants, unified diffs before writes, loop detection and declared degraded mode. You see what changes before it changes.

Companion Web UI & TUI

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.

HOW IT FEELS

Three ways to put it to work.

Same session, same context. Pick the mode that fits the problem.

$ sword tui → full interactive terminal UI with tab completion & diff approvals $ sword --prompt "refactor this to async/await" --cwd ./my-project → streams the answer, asks before writing, keeps a diff you can review
THE AGENT ARCHITECTURE

Perspective meets execution.

Thinking personas shape what to consider and why. Execution specialists define how work is carried out. Combine both to form a focused working agent.

01 / THINKING LAYER

15 thinking personas

Reasoning perspective · WHAT / WHY

Bayazid

Mechatronics, offensive security, electrical and mechanical systems, firmware, CAD, and technical audits.

MECHATRONICS / SECURITY

Preta

Research, knowledge synthesis, systems thinking, and philosophy.

RESEARCH / PHILOSOPHY

Shafiqul

Data-oriented reasoning, vector systems, and general problem solving.

DATA / VECTOR SYSTEMS

Himel

General-purpose reasoning and broad problem exploration.

GENERALIST

Sarim

General-purpose reasoning and cross-domain support.

GENERALIST

Selim

Design-oriented thinking, visual decisions, and general problem solving.

DESIGN / CREATIVE SYSTEMS

Orko

Software engineering, coding, systems, and refactoring.

SOFTWARE / SYSTEMS

Mohammad

Economics-informed reasoning and general analysis.

ECONOMICS

Apurbo

Creative exploration, ideation, and general reasoning.

CREATIVE THINKING

Kiam

Wisdom-oriented reasoning, philosophy, and reflective analysis.

WISDOM / PHILOSOPHY

Sabbir

Computing concepts and broad technical reasoning.

COMPUTING

Salif

Software, computing, and general technical problem solving.

SOFTWARE / COMPUTING

Ratul

Systems-oriented reasoning and general technical analysis.

SYSTEMS

Abdullah

Research-led reasoning and knowledge exploration.

RESEARCH

Limon

Computing concepts and general technical reasoning.

COMPUTING
02 / EXECUTION LAYER

16 execution specialists

Practical capability · HOW

Software Developer

Application features, implementation, bug fixes, and maintainable code.

SOFTWARE-DEV

Frontend Engineer

UI systems, responsive components, accessibility, and client-side behaviour.

FRONTEND-ENG

Backend Engineer

APIs, service layers, database logic, and system integrations.

BACKEND-ENG

Systems Engineer

Linux administration, process management, and operating-system workflows.

SYSTEMS-ENG

Database Engineer

Schema design, migrations, query optimisation, and data integrity.

DB-ENG

DevOps Engineer

CI/CD, containers, deployment pipelines, and infrastructure configuration.

DEVOPS-ENG

QA Engineer

Test design, automated verification, edge cases, and release confidence.

QA-ENG

Debugging Specialist

Failure reproduction, root-cause tracing, and fault isolation.

DEBUG-SPECIALIST

Security Specialist

Authorised security assessment, code review, and vulnerability analysis.

SECURITY-SPECIALIST

Research Specialist

Technical research, documentation analysis, datasheets, and evidence gathering.

RESEARCH-SPECIALIST

Documentation Specialist

Technical guides, API references, architecture records, and runbooks.

DOCS-SPECIALIST

UI/UX Specialist

Design systems, usability, visual hierarchy, and accessibility review.

UIUX-SPECIALIST

Embedded Engineer

Arduino, ESP32, STM32, serial protocols, firmware, and hardware workflows.

EMBEDDED-ENG

Robotics Engineer

ROS 2, control systems, URDF, robot modelling, and simulation.

ROBOTICS-ENG

Integration Engineer

Branch integration, compatibility checks, release verification, and go/no-go review.

INTEGRATION-ENG

CAD / Mechanical Designer

Parametric design, assemblies, DFMA, 3D printing, and STEP/STL output.

CAD-MECHANICAL

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.

THE CREW

Voice characters. Distinct styles.

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.

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.

WEB INTERFACE

One platform. Two deliberate interfaces.

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.

WHY SWORDCLI

Built for the terminal, not beside it.

Browser chatbotSwordCLI
Where it runsAnother tabInside your repo + Companion Web UI
Project contextYou paste it inAlready on disk, retrieved with hybrid RAG
Model choiceOne providerAny OpenAI-compatible endpoint + g4f fallback
Tools & MCPLimited pluginsDual-MCP: consume & serve tools natively
File changesCopy and pasteDiff shown first, approval required
Multiple agentsRarely/team round-robin built in
Data & sessionsIn their cloudLocal, durable, yours
PRICING

Start free. Go deeper when you're ready.

The core CLI is MIT licensed. Paid tiers are being shaped with early users — join the waitlist to help decide what they include.

Community
$0

The full open-source CLI. Forever free.

  • All core features & 10 personas
  • Dual-MCP, hybrid RAG, web search
  • MIT licensed & self-hosted Web UI
View on GitHub
Team
Custom

For teams that want shared configuration and governance.

  • Shared personas & routines
  • Central policy and audit trail
  • Onboarding help
Talk to us
FAQ

Good questions.

Is SwordCLI really free?

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.

Do I need my own API keys?

You can use any OpenAI-compatible provider (DeepSeek, OpenRouter, Ollama, LM Studio) or the built-in g4f fallback provider. Keys stay on your machine.

Does it work offline?

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.

Will it edit my files without asking?

No. Mutating tools go through an approval gate with a unified diff. You can grant scoped approvals for a session or reject any change.

What is the companion Web UI?

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.

Which platforms are supported?

The current public preview supports Linux only and requires Node.js 22+. Windows and macOS support are planned for a later release.

SUPPORT & FEEDBACK

Build with us.

Found a bug, need help, or want to discuss a collaboration? Reach the SwordCLI team directly.