Installation
Package selection and runtime setup
Choose Packages
The legacy unscoped forbocai package is a thin redirect to @forbocai/core. New consumers should use the scoped packages directly.
Export Matrix
@forbocai/node and @forbocai/browser both depend on @forbocai/core. Install the environment-specific package and you get core automatically.
Requirements
- Node.js
20+ - For
@forbocai/node: native build toolchain fornode-llama-cpp(C++ compiler, CMake) - For
@forbocai/browser: WebGPU-capable browser for WebLLM
Environment-Specific Gotchas
API Configuration
Node runtime config resolution:
FORBOCAI_API_URL~/.forbocai.json(apiUrl)- fallback default:
http://localhost:8080
API key resolution:
FORBOCAI_API_KEY~/.forbocai.json(apiKey)
Recommended for hosted API usage:
