trmx-node
v0.1.2
Published
A terminal chat interface for interacting with multiple AI models using Airtrain
Maintainers
Readme
trmx-node - Terminal AI Chat Interface
A command-line interface for interacting with multiple AI models, built with Airtrain.
Features
- Chat with various AI models directly from your terminal
- Store and manage conversation history
- Support for multiple providers (Fireworks, OpenAI, Anthropic, etc.)
- Configure and switch between different models
- View AI's thinking process for supported models
- Multi-line input support for longer prompts
- Markdown rendering in responses
Installation
# Install globally
npm install -g trmx-node
# Or run directly from this directory
npm install
npm run build
node ./dist/cli.jsUsage
Start a new chat
trmx-nodeList available chat sessions
trmx-node list
# Or
trmx-node -lContinue an existing chat session
# By session ID (can be partial)
trmx-node <session_id>
# Or by session number from the list
trmx-node -c <session_number>Delete a chat session
trmx-node --delete <session_number>Select provider and model
# Set the active provider
trmx-node -p fireworks
# Set the active model
trmx-node -m fireworks/llama-v3-70b
# Set both
trmx-node -p fireworks -m fireworks/llama-v3-70bList available providers and models
# List providers
trmx-node -lp
# List models for the active provider
trmx-node -lm
# List models for a specific provider
trmx-node -lm -p fireworksShow AI's thinking process
If the model generates content with <think>...</think> tags, you can show the thinking process with:
trmx-node -sAdditional commands
# Show storage info
trmx-node info
# Set time display style
trmx-node --set-timestyle [iso|human|relative]
# Check for updates
trmx-node -v
# Update to the latest version
trmx-node --updateConfiguration
trmx-node stores its configuration files in the following locations:
~/.trmx-node/messages/- Chat history~/.trmx-node/credentials/- API keys~/.trmx-node/config/- User settings
You can set API keys either through environment variables or by storing them in the credentials directory.
Environment Variables
FIREWORKS_API_KEY- API key for Fireworks AIOPENAI_API_KEY- API key for OpenAIANTHROPIC_API_KEY- API key for AnthropicGROQ_API_KEY- API key for GroqTOGETHER_API_KEY- API key for Together AIGOOGLE_API_KEY- API key for Google AI
In-Chat Commands
During a chat session, you can use the following:
- Type
exit,quit, orqto end the session - For multi-line input, use:
/m,/multiline,/multi,/p, or/paste(end with/end)"""(end with""")'''(end with''')
Development
# Clone the repository
git clone <repository-url>
cd trmx-node
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Run tests
npm testLicense
MIT
