Skip to main content

Config Commands

View and manage MEMANTO configuration.

memanto config show

Display current configuration and status.
memanto config show [OPTIONS]
Options:
  • None
Examples: View configuration:
memanto config show
Output:
═══════════════════════════════════════════════════════
MEMANTO Configuration
═══════════════════════════════════════════════════════

API Configuration:
├── Moorcheh API Key:     ✓ Configured (mk_****)
├── API Base URL:         https://api.moorcheh.ai
└── Connection Status:    ✓ Connected

Local Configuration:
├── Config File:          ~/.memanto/config.json
├── Config Version:       1.0
└── Last Updated:         2025-03-30 16:30:00 UTC

Session Configuration:
├── Active Agent:         customer-support
├── Active Session Token: eyJhbGc... (truncated)
├── Session Expires:      2025-03-31 22:30:00 UTC
└── Auto-Renew:           ✓ Enabled

Schedule Configuration:
├── Status:               ENABLED
├── Daily Summary Time:   08:00 UTC
└── Next Run:             2025-03-31 08:00:00 UTC

IDE Integrations:
├── Claude Code:          ✓ Connected
├── Cursor:               ✗ Not connected
└── Windsurf:             ✓ Connected

Configuration File

MEMANTO stores configuration in: Location:
~/.memanto/config.json
Example contents:
{
  "moorcheh_api_key": "mk_your_api_key_here",
  "active_agent_id": "customer-support",
  "active_session_token": "eyJhbGc...",
  "session_config": {
    "auto_renew_enabled": true
  },
  "schedule_config": {
    "enabled": true,
    "time_utc": "08:00"
  },
  "ide_integrations": {
    "claude-code": {"status": "connected", "path": "/path/to/.claude"},
    "cursor": {"status": "not-connected"}
  }
}

Manual Configuration

Reset Configuration

Delete the config file and reconfigure:
# Linux/Mac
rm ~/.memanto/config.json
memanto  # Run interactive setup

# Windows
del %USERPROFILE%\.moorcheh\memanto\config.json
memanto  # Run interactive setup

Update API Key

# Interactive setup
memanto

# Or set environment variable
export MOORCHEH_API_KEY=mk_new_key
memanto status  # Uses new key

Change Schedule Time

# Disable then re-enable with new time
memanto schedule disable
memanto schedule enable --time 10:00

Environment Variables

Override configuration with environment variables: Moorcheh Settings:
export MOORCHEH_API_KEY=mk_your_key
export MOORCHEH_BASE_URL=https://api.moorcheh.ai  # Default
MEMANTO Server:
export MEMANTO_HOST=0.0.0.0
export MEMANTO_PORT=8000
Logging:
export LOG_LEVEL=INFO
export LOG_FORMAT=json

Configuration Best Practices

DO

  • Keep API key in environment variables
  • Use .env files (add to .gitignore)
  • Store in secrets manager (production)
  • Backup config regularly
  • Use strong API keys

DON’T

  • Commit config to git
  • Hardcode API keys
  • Share configuration files
  • Expose in logs
  • Use weak keys

Troubleshooting

Configuration Not Found

# Reconfigure
memanto

# Verify file exists
ls ~/.memanto/config.json

API Key Invalid

# Check current key
memanto config show

# Reconfigure
memanto

Wrong Configuration File

# Verify you're using the right file
memanto config show | grep "Config File"

# If using custom location
# Move to default: ~/.memanto/config.json

Next Steps