Skip to content
Skip to content

Self-hosted quickstart

The files live in your project, and your app plays them offline. About three minutes with Node 20 or Python 3.9+. You need no key to start.

  1. Make a call

    No key is needed. A request without one is answered as the sample account, which owns the 12 sample exercises.

    Terminal
    curl "https://api.movekit.com/v1/exercises?limit=1"
    200 response
    {
    "data": [
    {
    "aliases": [
    "Standing Cable Row",
    "Standing Neutral-Grip Cable Row",
    "Standing Dual-Handle Cable Row",
    "Two-Handle Standing Cable Row"
    ],
    "implementsNeeded": null,
    "secondaryMuscles": [
    "Biceps"
    ],
    "movementPattern": [
    "Pull"
    ],
    "difficulty": "beginner",
    "durationSeconds": 5.8,
    "preview": {
    "videoUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/video.mp4",
    "posterUrl": "https://movekit.com/media/exercises/cable-row-bar-standing-row/poster.webp"
    },
    "id": "75",
    "slug": "cable-row-bar-standing-row",
  2. Import the sample

    t="$(mktemp -d)" && curl -fsSL -o "$t/import.mjs" https://movekit.com/docs/examples/import.mjs && node "$t/import.mjs" --install
    node movekit/import.mjs

    You now have movekit/assets/ with the sample's videos and posters, movekit/catalog.json describing them, movekit/status.json saying where they came from, and movekit/README.md saying how web and mobile apps serve the files. Every file is checked for size and SHA-256. The first command installs the importer itself in movekit/ with its own --install, which never replaces a newer copy or a file of your project. Both import.mjs and import.py use only standard libraries and write the exact same folder.

  3. Show them

    Read movekit/catalog.json in your app and play the clips. To let a coding agent do all of this, use the agent prompt, the skill or the MCP server.

  4. Add your key

    When you own a pack, create a key on your purchases page. It is one click, and it is copied for you. It is shown once, so keep it safe. Put it in .env.local in your project, and keep that file out of Git. Don't own a pack yet? See the packs.

    .env.local
    MOVEKIT_API_KEY=mk_live_...
    node movekit/import.mjs

    The same command now imports every exercise you own, into the same folder, so your app's code stays as it is. Sample exercises you don't own stay too. Run it again at any time: only new or changed files download.

    Each version of a file allows your account 20 downloads a month, so keep the import between builds: commit movekit/ and, if you set it, the MOVEKIT_ASSETS_DIR folder to a private repository, or use a build cache that keeps both. A build that starts empty, as on Vercel, downloads every file again. The importer also reads the key from the MOVEKIT_API_KEY environment variable, which suits CI.