CyborgShell - Configuration Guide

Table of Contents

Overview

Configuration is OPTIONAL

CyborgShell works immediately for programming without any configuration. You only need to configure csconfig if you want to use AI features.

Registration and Storage

Registration is OPTIONAL

Registration is only required if you want:

Without registration: You can still save programs/files in the public space (accessible to everyone on all devices), but you won't have a private space.

⚠️ Security Reality Check:

CyborgShell is MORE secure than downloading and running random .exe files from the internet. Here's why:

That said, be vigilant when running unknown public code:

Best Practices:

Bottom Line: Running code in CyborgShell is like using Google Drive, GitHub Codespaces, or JSFiddle - far safer than downloading random software. The browser sandbox is your friend!

How Storage Works

Spaces: Think of spaces like folders or drives:

File Storage:

See help account and help sharing in CyborgShell for details on registration and space management.

Operating Modes

CyborgShell can be used in several modes:

When Configuration is Needed

No Configuration Required For:

Configuration Required For:

Accessing csconfig

# Enter configuration interface
csconfig

# You'll see a menu:
# 1. Configure autorun program
# 2. Configure handler (ai, rpggpt)
# 3. Configure provider (chatgpt → service mapping)
# 4. View service details
# 5. Add/update service (API keys, endpoints)
# 6. Delete service
# 
# BS. Backup configuration to Server
# DS. Deploy configuration from Server
# BL. Backup configuration to Local Download
# DL. Deploy configuration from Local File
#
# X. Exit

Configuration Options

Option 1: Configure Autorun Program

Set a program to run automatically when CyborgShell starts.

csconfig
1
Enter program name: startup
# Now 'startup' will run on every launch

Use Case: Automatically load your workspace, initialize variables, or set up your environment

Option 2: Configure Handler

Set the default AI handler for the chatgpt command.

csconfig
2
Available handlers:
  - ai (standard AI chat)
  - rpggpt (interactive fiction/RPG)

Enter handler: ai

Option 3: Configure Provider

Map the keyword "chatgpt" to a specific AI service.

csconfig
3
Enter provider service name: openai
# Now 'chatgpt' uses OpenAI by default

# Or use the special keyword:
Enter provider service name: %PROVIDER%
# Uses whichever service you've marked as default

Tip: Use %PROVIDER% in projects to make them portable across different AI services

Option 4: View Service Details

List all configured AI services and their settings (without showing API keys).

csconfig
4

# Output:
Service: openai
  Endpoint: https://api.openai.com/v1/chat/completions
  Model: gpt-4
  Temperature: 0.7
  Top_p: 1
  Frequency_penalty: 0
  Presence_penalty: 0

Service: claude
  Endpoint: https://api.anthropic.com/v1/messages
  Model: claude-3-5-sonnet-20241022
  ...

Option 5: Add/Update Service

Configure API keys, endpoints, and parameters for AI services.

csconfig
5
Enter service name: openai
Enter API key: sk-proj-...
Enter endpoint [default]: 
Enter model [gpt-4]: gpt-4o
Enter temperature [0.7]: 0.8
Enter top_p [1]: 
Enter frequency_penalty [0]: 
Enter presence_penalty [0]: 
Enter max_tokens [4096]: 8192

Option 6: Delete Service

Remove a configured AI service.

csconfig
6
Enter service name to delete: old-service
Service 'old-service' deleted.

AI Service Setup

OpenAI (ChatGPT)

Getting Your API Key

  1. Go to platform.openai.com
  2. Sign in or create account
  3. Navigate to API Keys section
  4. Create new secret key
  5. Copy key (starts with sk-proj-...)
csconfig
5
Service name: openai
API key: sk-proj-YOUR-KEY-HERE
Endpoint: https://api.openai.com/v1/chat/completions
Model: gpt-4o
Temperature: 0.7
Top_p: 1
Frequency_penalty: 0
Presence_penalty: 0
Max_tokens: 4096

Anthropic (Claude)

Getting Your API Key

  1. Go to console.anthropic.com
  2. Sign in or create account
  3. Navigate to API Keys
  4. Create new key
  5. Copy key (starts with sk-ant-...)
csconfig
5
Service name: claude
API key: sk-ant-YOUR-KEY-HERE
Endpoint: https://api.anthropic.com/v1/messages
Model: claude-3-5-sonnet-20241022
Temperature: 0.7
Top_p: 1
Frequency_penalty: 0
Presence_penalty: 0
Max_tokens: 4096

Google (Gemini)

Getting Your API Key

  1. Go to Google AI Studio
  2. Sign in with Google account
  3. Create API key
  4. Copy key
csconfig
5
Service name: gemini
API key: YOUR-GOOGLE-API-KEY
Endpoint: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent
Model: gemini-pro
Temperature: 0.7
Top_p: 1
Frequency_penalty: 0
Presence_penalty: 0
Max_tokens: 4096

Ollama (Local AI - No API Key Required)

Setup

  1. Install Ollama from ollama.ai
  2. Pull a model: ollama pull llama3.2:latest
  3. Start Ollama service
  4. Configure in csconfig (no API key needed)
csconfig
5
Service name: ollama
API key: [leave blank or type "none"]
Endpoint: http://localhost:11434/v1/chat/completions
Model: llama3.2:latest
Temperature: 0.7
Top_p: 1
Frequency_penalty: 0
Presence_penalty: 0
Max_tokens: 4096

✅ Complete Privacy: Ollama runs locally with zero external API calls

✅ Zero Cost: No API fees, unlimited usage

✅ Air-Gap Capable: Works without internet connection

Provider Configuration

Setting Default Provider

The %PROVIDER% variable allows projects to be portable across different AI services.

# Set default provider
csconfig
3
Enter provider service name: openai

# Now anywhere %PROVIDER% is used, it maps to 'openai'

Using %PROVIDER% in Projects

# In transformer links
link 2 1 chatgpt %PROVIDER% analyze this

# In interactive mode
chatgpt %PROVIDER%: help me debug

# Switching providers changes behavior everywhere
csconfig → 3 → claude
# Now all %PROVIDER% references use Claude

Multi-Service Setup

Configure multiple services and switch between them:

# Configure all three major services
csconfig → 5 → openai → [configure]
csconfig → 5 → claude → [configure]
csconfig → 5 → gemini → [configure]
csconfig → 5 → ollama → [configure]

# Use explicitly in commands
chatgpt service openai
chatgpt analyze with GPT-4

chatgpt service claude
chatgpt document with Claude

chatgpt service gemini
chatgpt translate with Gemini

chatgpt service ollama
chatgpt private analysis with local AI

Backup and Deployment

Backup Configuration to Server (BS)

⚠️ CRITICAL WARNING:

This option backs up your configuration (including API keys) to the CyborgShell server in PLAIN TEXT until ZOSCII ITS encoding is implemented.

csconfig
BS
Configuration backed up to server

Deploy Configuration from Server (DS)

Restore configuration from server backup:

csconfig
DS
Configuration deployed from server

Backup Configuration to Local Download (BL)

✅ RECOMMENDED: Safe local backup method

csconfig
BL
# Downloads: cyborgshell-config-backup.json
# Saves to your Downloads folder

Deploy Configuration from Local File (DL)

Restore configuration from local backup file:

csconfig
DL
# Opens file picker
# Select: cyborgshell-config-backup.json
# Configuration restored

Cross-Device Configuration

Scenario: Work on Multiple Devices

On your PC:

csconfig → 5 → configure all services
csconfig → BL → download backup

On your phone:

# Transfer cyborgshell-config-backup.json to phone
csconfig → DL → select file → deploy

Result: Identical configuration on both devices

Advanced Configuration

Temperature Settings

Controls randomness/creativity (0.0 to 2.0):

# Factual coding assistant
Temperature: 0.2

# Creative writing
Temperature: 1.0

# Experimental exploration
Temperature: 1.5

Max Tokens

Maximum response length:

Custom Endpoints

Use custom or proxy endpoints:

# Self-hosted Ollama
Endpoint: http://192.168.1.100:11434/v1/chat/completions

# OpenAI-compatible API
Endpoint: https://your-proxy.com/v1/chat/completions

# Azure OpenAI
Endpoint: https://YOUR-RESOURCE.openai.azure.com/openai/deployments/YOUR-DEPLOYMENT/chat/completions?api-version=2024-02-15-preview

Service-Specific Models

Service Model Examples Use Case
OpenAI gpt-4o
gpt-4-turbo
gpt-3.5-turbo
Best overall
Fast, capable
Cost-effective
Claude claude-3-5-sonnet-20241022
claude-3-opus-20240229
claude-3-haiku-20240307
Balanced
Most capable
Fastest
Gemini gemini-pro
gemini-ultra
Standard
Advanced
Ollama llama3.2:latest
mistral:latest
codellama:latest
General purpose
Fast, efficient
Code-focused

Security Considerations

API Key Storage

✅ Your API keys are stored in browser local storage:

* unless you use the optional CORS proxy server

Public/Shared Computers

If using CyborgShell on a public computer:

  1. Use private/incognito mode, OR
  2. Clear configuration after use:
    csconfig → 6 → delete all services
  3. Browser local storage is tied to the device

Configuration Backup Security

Method Security Level Use Case
BL (Local Download) ✅ Secure Personal backups, cross-device sync
DL (Local Deploy) ✅ Secure Restore from personal backup
BS (Server Backup) ⚠️ Use with caution Only on self-hosted servers
DS (Server Deploy) ⚠️ Use with caution Only on self-hosted servers

Best Practices

Troubleshooting

AI Commands Not Working

# Check if services configured
csconfig → 4

# If no services shown, configure at least one
csconfig → 5 → [configure service]

# Set default provider
csconfig → 3 → openai

Invalid API Key Error

# Update service with correct key
csconfig → 5 → [service name] → [paste correct key]

# Verify at provider website:
# OpenAI: platform.openai.com
# Claude: console.anthropic.com
# Gemini: makersuite.google.com

Configuration Not Persisting

# Check browser local storage enabled
# Settings → Privacy → Allow local storage

# Backup configuration
csconfig → BL

# If still issues, try:
# 1. Clear browser cache
# 2. Redeploy configuration: csconfig → DL

Multiple Devices Out of Sync

# On primary device
csconfig → BL → download backup

# Transfer file to other device

# On other device
csconfig → DL → select backup file

Complete Examples

Example 1: First-Time Setup (OpenAI)

# Step 1: Get API key from platform.openai.com
# Step 2: Configure service
csconfig
5
Service name: openai
API key: sk-proj-abc123...
Endpoint: [press Enter for default]
Model: gpt-4o
Temperature: 0.7
Top_p: [press Enter]
Frequency_penalty: [press Enter]
Presence_penalty: [press Enter]
Max_tokens: 4096
X

# Step 3: Set as default provider
csconfig
3
Provider: openai
X

# Step 4: Test
chatgpt hello world
!what is the capital of France?

Example 2: Multi-Service Setup

# Configure OpenAI
csconfig → 5 → openai → [configure]

# Configure Claude
csconfig → 5 → claude → [configure]

# Configure Gemini
csconfig → 5 → gemini → [configure]

# Configure Ollama (local)
csconfig → 5 → ollama → [configure]

# Set default
csconfig → 3 → openai

# Backup everything
csconfig → BL

# Now use different services
chatgpt service openai
!quick question with GPT

chatgpt service claude
!another question with Claude

chatgpt service ollama
!private question with local AI

Example 3: Team Configuration

# Tech lead creates master config
csconfig → 5 → openai → [team API key]
csconfig → 5 → claude → [team API key]
csconfig → 3 → openai
csconfig → BL → save as "team-config.json"

# Share team-config.json with team

# Each team member deploys
csconfig → DL → select "team-config.json"

# Everyone has identical setup

Example 4: Privacy-First Setup (Ollama Only)

# Install Ollama locally
# Visit ollama.ai, download, install

# Pull model
ollama pull llama3.2:latest

# Configure in CyborgShell
csconfig
5
Service name: ollama
API key: [leave blank]
Endpoint: http://localhost:11434/v1/chat/completions
Model: llama3.2:latest
Temperature: 0.7
Top_p: 1
Frequency_penalty: 0
Presence_penalty: 0
Max_tokens: 4096
X

# Set as default
csconfig
3
Provider: ollama
X

# Test - zero external calls
chatgpt analyze this confidential data
# All processing happens locally

# Perfect for:
# - Healthcare (PHI data)
# - Legal (privileged communications)
# - Financial (confidential reports)
# - Classified work (air-gapped environments)

Example 5: Development vs Production

# Development configuration
csconfig → 5 → openai-dev → [dev API key]
csconfig → 5 → ollama → [local setup]
csconfig → 3 → ollama
csconfig → BL → save as "dev-config.json"

# Production configuration
csconfig → 5 → openai-prod → [prod API key]
csconfig → 5 → claude-prod → [prod API key]
csconfig → 3 → openai-prod
csconfig → BL → save as "prod-config.json"

# Switch between environments
# Development:
csconfig → DL → dev-config.json

# Production:
csconfig → DL → prod-config.json

Example 6: Cost-Optimized Setup

# Free tier / low cost
csconfig → 5 → ollama → [local, free]
csconfig → 5 → openai → [gpt-3.5-turbo, cheap]

# Use Ollama for bulk work
chatgpt service ollama
# Process 1000 documents - zero cost

# Use OpenAI for critical tasks
chatgpt service openai
# Final review with GPT-4

Quick Start Checklist

For Programming Only (No AI)

✅ No configuration needed - start coding immediately!

For AI Features

  1. ☐ Get API key from provider (OpenAI/Claude/Gemini) or install Ollama
  2. ☐ Run csconfig
  3. ☐ Select option 5 (Add/update service)
  4. ☐ Enter service details
  5. ☐ Select option 3 (Configure provider)
  6. ☐ Set default service
  7. ☐ Exit (X)
  8. ☐ Test: chatgpt hello world
  9. ☐ Backup: csconfig → BL

Summary

Key Points: