GSX CLI - GoSentrix Application Security CLI. Authenticate once, use everywhere.
Project description
GSX CLI
GoSentrix CLI for Application Security. Authenticate once, use everywhere: Claude Code, Cursor, Codex, and more.
Installation
via pip (recommended)
pip install gsx-cli
via npm
npm install -g @gosentrix/gsx
From source
git clone https://github.com/gosentrix/gsx-cli.git
cd gsx-cli
pip install -e .
Quick Start
# 1. Authenticate with GoSentrix (opens browser)
gsx auth login
# 2. Verify setup
gsx doctor
# 3. Configure your IDE
gsx mcp config claude # For Claude Code
gsx mcp config cursor # For Cursor
gsx mcp config codex # For Codex
Commands
Authentication
gsx auth login # Authenticate via browser (device code flow)
gsx auth status # Check authentication status
gsx auth logout # Clear stored credentials
gsx auth print-access-token # Print current access token
MCP Configuration
gsx mcp config <ide> # Generate MCP config (claude, cursor, codex, generic)
gsx mcp url # Print MCP endpoint URL
gsx mcp tools # List available MCP tools
gsx mcp test # Test MCP connection
gsx mcp call <tool> # Call an MCP tool directly
Context Management
gsx context show # Show current workspace/project context
gsx context set # Set workspace/project scope
gsx context init # Initialize context for current directory
gsx context clear # Remove context files
Diagnostics
gsx doctor # Verify setup and diagnose issues
Claude Code Setup
After authenticating, set up Claude Code with:
# Generate and run the setup command
gsx mcp config claude
This outputs:
claude mcp add --transport http gsx https://mcp.gosentrix.io/mcp \
--header "Authorization: Bearer $(gsx auth print-access-token)"
claude mcp enable gsx
Environment Variables
| Variable | Description | Default |
|---|---|---|
GSX_GATEWAY_URL |
MCP Gateway URL | https://mcp.gosentrix.io |
GSX_CLIENT_ID |
OAuth client ID | gsx-cli |
Security
- Device code flow: Secure OAuth authentication via browser
- OS keychain storage: Credentials stored in macOS Keychain, Windows Credential Manager, or Linux Secret Service
- Short-lived tokens: Access tokens expire in 15 minutes
- Automatic refresh: Tokens are refreshed automatically
- Zero credentials in files: Only scope stored in
.gsx.json
Requirements
- Python 3.8+
- Node.js 16+ (for npm installation)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gsx_cli-0.1.0.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gsx_cli-0.1.0-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file gsx_cli-0.1.0.tar.gz.
File metadata
- Download URL: gsx_cli-0.1.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d340cd6e69c5797acb53e2a2bd9d97c7a4e267e6efd91006ac71bc2ab4f18059
|
|
| MD5 |
bae45b01c34a52be701b2590af3a7a44
|
|
| BLAKE2b-256 |
4cc05b81467383dd4a8aa9bfdb4765d6ccf8b3aca4012d6728febaea6f0e07c7
|
File details
Details for the file gsx_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gsx_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
524760113b975af871576b52d12e069927c75f09df3fca9ca4421d2ba156b099
|
|
| MD5 |
47f7d0c1cdadafde3bf51a58ff8e53a3
|
|
| BLAKE2b-256 |
7b4b232a8aa9013a3665a50a42832019b5d1df04ab3f22b4ca3fc26ef694e8d2
|