Skip to main content

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


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.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsx_cli-0.1.2-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file gsx_cli-0.1.2.tar.gz.

File metadata

  • Download URL: gsx_cli-0.1.2.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

Hashes for gsx_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2f18f475293500d8c29fdb7e37b45f117959245928729e0907d9b5df098ed4a7
MD5 030373d8d0795598ef6f89bee8887dd8
BLAKE2b-256 3e1f28aa3556e4ec847a6456d7d598238ff54a26056a70b6fcb8d132be67033c

See more details on using hashes here.

File details

Details for the file gsx_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gsx_cli-0.1.2-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

Hashes for gsx_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f519780028d992560be187119f405b1481baaac57c769b0c212c395fe22b4de
MD5 abba0fe01e87be53f7ab7891c89249ac
BLAKE2b-256 5e3a3a4357a072bbd26d8511bb3e5ea81e6ea04be4845afbecc3eca0f0fefa81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page