flexkit dev
Runs the tools and skills from your local flexkit.tools.ts as your personal local runtime. While it is connected, Chat turns and manual automation runs that you start use these local tools instead of the project’s production tools URL. Other members and background triggers are not affected.
Synopsis
flexkit dev [options]Behavior
- Resolves the project from
flexkit.config.ts(use--projectwhen the config defines several). - Loads
.env.localand.envfrom the current directory when present, then bundles and importsflexkit.tools.ts(.jsand.mjsare also accepted). The file mustexport default defineTools(...). - Registers with Flexkit as your local runtime and advertises the tool catalog and code skills. Code skills are synced for your account on every change.
- Polls for tool calls, runs them on your machine, and prints one line per call with its duration.
- Watches the tools file and its imports; a change re-registers the updated catalog.
- Stops on Ctrl+C. The Dashboard shows the runtime as disconnected shortly after.
flexkit dev needs a user session from flexkit login with the owner or developer role. API tokens cannot register a local runtime and the command exits with an error when one is used.
Options
--project <id>: Project to connect whenflexkit.config.tsdefines several.--tools-file <path>: Path to the tools file. Defaults toflexkit.tools.tsin the current directory.--env-file <path>: Environment file to load before importing the tools. Repeatable; replaces the default.env.localand.env.--no-watch: Do not watch the tools file for changes.- See also the global options.
Examples
# Run the local runtime from the folder with flexkit.config.ts and flexkit.tools.ts
flexkit dev
# Connect one project of a multi-project config with a specific env file
flexkit dev --project abcdefghij --env-file .env.developmentSee custom tools for the end-to-end workflow.
Last updated on