s-gw
Local approvals and audit so coding agents use credentials without ever seeing them
- Pricing
- Free
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- Version
- 0.1.22
- Listing updated
- 1 day ago
About s-gw
s-gw is a free MCP server for security. It runs locally on your machine and is started by your AI client.
s-gw sits between a coding agent and your secrets. The agent only ever sees a typed handle such as a production read-only credential name. When it wants to run something, you review the agent, command, handle, environment binding, working directory and target, then s-gw injects the credential into one constrained child process on your machine and returns sanitized output with detected secret values replaced by handles.
Raw values stay in macOS Keychain, Linux Secret Service, Windows Credential Manager, 1Password or an encrypted local ledger. Grants are bound to the specific action and can carry a time window, and every request, approval and execution is recorded as an audit event without storing returned secrets. A local console, CLI and menu-bar helper show the approval queue and history.
The README calls it an early preview: formats may change, Windows and Linux desktop support is experimental, and there has been no independent security audit. The TypeScript parts are Apache-2.0, while packages also include a proprietary compiled Rust execution core.
Install
Run in a terminal
claude mcp add s-gw -- npx -y @s-gw/s-gwAdd to claude_desktop_config.json
{
"mcpServers": {
"s-gw": {
"command": "npx",
"args": [
"-y",
"@s-gw/s-gw"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"s-gw": {
"command": "npx",
"args": [
"-y",
"@s-gw/s-gw"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"s-gw": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@s-gw/s-gw"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"s-gw": {
"command": "npx",
"args": [
"-y",
"@s-gw/s-gw"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"s-gw": {
"command": "npx",
"args": [
"-y",
"@s-gw/s-gw"
]
}
}
}What it does
- Typed credential handles
- Agents reference named handles and never receive plaintext values.
- Local approvals
- Review agent, command, target and working directory before access.
- Constrained execution
- Injects the credential only into the approved child process.
- Output sanitization
- Scans output and replaces detected secrets with handles.
- Audit trail
- Logs request, approval, execution and destination without raw secrets.
- Agent profiles
- Setup for Codex, Claude Code, Cursor, OpenCode, Gemini CLI, Copilot and VS Code.
Good for
- Let an agent run an AWS read-only command with your approval
- Stop API tokens from leaking into model context
- Audit which agent used which credential and when
- Time-limit access for a deploy task
Pricing
Free
Free preview; Apache-2.0 broker with proprietary Rust core
Prices change. Check s-gw.com before you buy.
s-gw FAQ
Where do the secrets live?
In your OS keychain, 1Password or an encrypted local ledger, never in model context.
Is it production ready?
The README calls it an early preview without an independent security audit.
What licence applies?
The TypeScript broker is Apache-2.0; packages also include a proprietary compiled Rust core.
Which platforms work?
Node.js 20+ on macOS, Linux and Windows, with desktop support on Windows and Linux still experimental.
Is s-gw free?
Yes. s-gw is free to use.
How do I add s-gw to Claude Code?
Run this command in your terminal: claude mcp add s-gw -- npx -y @s-gw/s-gw
What are the best alternatives to s-gw?
The closest alternatives to s-gw are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to s-gw

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools