4runr-os
v2.0.3
Published
4Runr AI Agent OS - Interactive terminal for managing AI agents
Maintainers
Readme
4Runr OS - AI Agent Operating System
Interactive terminal for managing AI agents on the 4Runr platform.
Installation
Install globally from npm:
npm install -g 4runr-osQuick Start
After installation, simply run:
4rThat's it! The OS connects to the official 4Runr server automatically.
Available Commands
You can use any of these commands:
4r- Short and simple (recommended)4runr- Full command4runr-os- Full package name
All commands do the same thing - launch the 4Runr OS terminal.
Connect to Local Server (Development)
If you're running a local gateway, set the GATEWAY_URL environment variable:
Windows (PowerShell):
$env:GATEWAY_URL="http://localhost:3001"
4runrWindows (CMD):
set GATEWAY_URL=http://localhost:3001
4runrLinux/Mac:
export GATEWAY_URL=http://localhost:3001
4runrConnect to Custom Server
To use a different server, set GATEWAY_URL:
export GATEWAY_URL=http://your-server.com:3001
4runrQuick Start
Configure AI Provider:
4runr> configFollow the prompts to add your OpenAI or Anthropic API key.
Start Chatting:
4runr> run-agent assistantThen just type your messages!
Build Custom Agent:
4runr> buildCreate your own AI agent with custom system prompts.
Available Commands
AI Configuration
config- Configure AI provider (OpenAI/Anthropic)models- List available AI modelsai-status- Show stored API keys and configuration
Agent Management
run-agent [name]- Start chatting with an AI agentbuild- Build a custom AI agent (interactive)agents- List available agents
Run Management
create <name>- Create a new runstart <run-id>- Start a runget <run-id>- Get run detailslist- List all runs
System
status- Show system statussentinel- Show Sentinel monitoringmetrics- Show system metricsclear- Clear the screenhelp- Show all commandsexit- Exit the OS
Examples
Connect to Server and Configure
# Set server URL
export GATEWAY_URL=http://44.222.212.152:3001
# Run OS
4runr
# Configure OpenAI
4runr> config
# Follow prompts...
# Start chatting
4runr> run-agent assistant
Assistant> Hello! How can I help you?Build Custom Agent
4runr> build
Agent name: code-reviewer
Agent description: Reviews code for bugs and improvements
System prompt: You are an expert code reviewer...
END
Temperature: 0.3
Max tokens: 2000
4runr> run-agent code-reviewerRequirements
- Node.js 18+
- Access to a 4Runr Gateway (local or remote)
License
MIT
