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.1.tar.gz
(14.9 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.1-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file gsx_cli-0.1.1.tar.gz.
File metadata
- Download URL: gsx_cli-0.1.1.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d25362efd1ba6a1a24f74ffee8889094dc7b62095c7c8c2662949ce9c3b930d3
|
|
| MD5 |
c2f6c181b4d04b225bae6d0ac8dd1210
|
|
| BLAKE2b-256 |
4e16f47d4e888af9a7fe523c4e624df1368c2b8a5e3ac41922aa27fc01405027
|
File details
Details for the file gsx_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gsx_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.2 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 |
5e3a47f8b06f909c8f9a38d88b7be52835d21875e1a152874b69f45ed4c07576
|
|
| MD5 |
93d9827017dfce42153a41dfe394c182
|
|
| BLAKE2b-256 |
23572b83bd6813a30153f23b0ab777f602bedabda232acc59bfa6e42f06025c4
|