Skip to main content
The arkor package exposes the TypeScript surface that the CLI and Studio sit on top of. Everything you need for a typical project lives in three primitives plus their typed inputs.

Minimal example

That is the whole shape arkor dev and arkor start discover.

Main API

Auxiliary helpers (advanced)

These are exported for code that drives Arkor outside the CLI flow, e.g. running training from your own server or a script. Most projects do not need them.

Types

Public type exports (from arkor): Arkor, ArkorInput, ArkorProjectState, BlobDatasetSource, DatasetSource, HuggingfaceDatasetSource, JobStatus, LoraConfig, Trainer, TrainerCallbacks, TrainerInput, TrainingJob, TrainingResult, plus Auth0Credentials (the OAuth credentials type, named after the underlying Auth0-based provider), AnonymousCredentials, and Credentials for the auth helpers. TrainingLogContext, CheckpointContext, InferArgs are not exported by name today; they are documented in the callbacks and infer pages so you can mirror them inline if you need typed callback parameters.

Not in the public surface

These exist in the source tree but are intentionally not exported from arkor. Treat them as internal:
  • SDK_VERSION, defaultArkorCloudApiUrl(): used by the CLI and Studio server. Do not import via deep paths; the export contract may change.
  • The CLI command runners (runBuild, runStart, runDev, runInit, runLogin, runLogout, runWhoami): they live under src/cli/commands/ and are CLI-private. If you need to drive a training run, use runTrainer (above) or call trainer.start() / trainer.wait() directly.

See also