Skip to main content
Glama
guarded-exchange

guarded-exchange

by no-thankyou

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GX_DB_PATHNoSQLite database file; absolute path.$XDG_DATA_HOME/guarded-exchange/guarded-exchange.db (~/.local/share/...)
GX_ENV_FILENoPath to an explicit dotenv file to read (e.g. path/to/gx.env); a .env in the working directory is deliberately ignored.
GX_HTTP_HOSTNoWhere serve --transport http listens.127.0.0.1
GX_HTTP_PORTNoPort where serve --transport http listens.8000
GX_LOG_LEVELNoLog level: DEBUG, INFO, WARNING or ERROR.INFO
GX_LOCAL_USERNoName of the local-mode user (the only principal in local mode).local
GX_BYBIT_BASE_URLNoBybit REST base URL: only https://api-demo.bybit.com, https://api-testnet.bybit.com (test environment), https://api.bybit.com, https://api.bytick.com (mainnet), no path; anything else stops the server.https://api-demo.bybit.com
GX_MASTER_KEY_FILENoMaster key file; absolute, must be outside the database directory.$XDG_CONFIG_HOME/guarded-exchange/master.key (~/.config/...)
GX_HTTP_ALLOWED_HOSTSNoJSON list of accepted Host headers (host:* = any port).["127.0.0.1:*", "localhost:*", "[::1]:*"]
GX_CONFIRM_CLI_ENABLEDNoTrust the CLI (confirm approve / confirm reject) as a confirmation channel; set it for the server and the CLI alike (FR-42).false
GX_BYBIT_READ_TIMEOUT_SNoHTTP read timeout in seconds.5
GX_HTTP_ALLOWED_ORIGINSNoJSON list of accepted Origin headers (browsers).["http://127.0.0.1:*", "http://localhost:*", "http://[::1]:*"]
GX_ORDER_SEND_DEADLINE_SNoOverall bound of one order request, seconds (up to 60); after it the outcome is unknown and the order is looked up by its client id.15
GX_BYBIT_GET_MAX_ATTEMPTSNoAttempts for read (GET) requests; writes are never retried automatically.3
GX_INSTRUMENT_RULES_TTL_SNoHow long instrument rules are cached in memory, seconds (1-86400).600
GX_SQLITE_BUSY_TIMEOUT_MSNoHow long a writer waits for another process's write lock.5000
GX_BYBIT_CONNECT_TIMEOUT_SNoHTTP connect timeout in seconds.3
GX_BYBIT_GET_BACKOFF_BASE_SNoExponential backoff base, seconds.0.2
GX_ORDER_FILL_READ_DEADLINE_SNoBound of reading an accepted order back, seconds; after it the fill is unknown.5
GX_TEST_ALLOW_LOOPBACK_BYBIT_URLNoTests only: also accept a loopback stub (http://127.0.0.1:PORT) as the exchange, treated as the test environment.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources