Skip to main content

Getting Started

A small language model framework for local inference and fine-tuning.

Smartloop Demo

Best Performance

For best performance, use an Apple Silicon Mac.

Installation

macOS / Linux:

curl -fsSL https://smartloop.ai/install.sh | bash

Windows (PowerShell):

irm https://smartloop.ai/install.ps1 | iex

Uninstall

macOS / Linux:

curl -fsSL https://smartloop.ai/uninstall | bash

Windows (PowerShell):

irm https://smartloop.ai/uninstall.ps1 | iex

Configuration

Initialize a new project with your developer token:

slp init -t <developer_token>

You can obtain your access token from https://app.smartloop.ai/developer. For more on token storage, CLI/TUI token commands, and how credentials are secured, see the Credentials page.

Usage

# View available commands
slp --help

Project Management

slp projects create <name>
slp projects list
slp projects switch <name>
slp status

Add a Document

Upload a document for training:

slp add document.pdf

Prompting

Start the interactive chat:

slp run

For a non-TUI experience:

slp run --no-tui

Server Management

SLP includes a background API server compatible with OpenAI's chat completion format.

slp server start
slp server stop
slp server status

On macOS (Homebrew):

brew services start smartloop
brew services stop smartloop

On Linux/WSL (systemd user service):

systemctl --user start smartloop
systemctl --user stop smartloop
systemctl --user status smartloop

Requirements

RequirementDetails
PlatformmacOS (Apple Silicon) or Linux (x86_64)
Python3.11 or later (installed automatically)
CMakeInstalled automatically via Homebrew