Loading...
Loading...
Use when an existing agent needs Prefactor resources created via the Prefactor CLI before SDK instrumentation is added.
npx skill4agent add prefactordev/typescript-sdk bootstrap-existing-agent-with-prefactor-cliskills/instrument-existing-agent-with-prefactor-sdk/SKILL.mdskills/create-provider-package-with-core/SKILL.mdlangchainaiopenclawbunnpmpnpmyarn@prefactor/cliprefactorprefactor@prefactor/clibunx @prefactor/clinpx @prefactor/clipnpm dlx @prefactor/cliyarn dlx @prefactor/cliprefactor helpprefactor <group> help# bun
bun add @prefactor/cli
# npm
npm install @prefactor/cli
# pnpm
pnpm add @prefactor/cli
# yarn
yarn add @prefactor/cliprefactor profiles add default [base-url] --api-token <api-token>
prefactor accounts list
prefactor environments create --name <env-name> --account_id <account-id>
prefactor agents create --name <agent-name> --environment_id <environment-id>
prefactor agent_instances register \
--agent_id <agent-id> \
--agent_version_external_identifier <agent-version-id> \
--agent_version_name <agent-version-name> \
--agent_schema_version_external_identifier <schema-version-id> \
--update_current_version<profile-name>defaultstagingprod--profile <name>npx @prefactor/cli profiles add ..../prefactor.json~/.prefactor/prefactor.json./prefactor.jsonenvironment_idagent_idagent_instance_id@prefactor/langchain@prefactor/ai@prefactor/openclawskills/create-provider-package-with-core/SKILL.mdskills/instrument-existing-agent-with-prefactor-sdk/SKILL.mdexport PREFACTOR_API_URL="<api-url>"
export PREFACTOR_API_TOKEN="<api-token>"
export PREFACTOR_AGENT_ID="<agent-id>"agent_idPREFACTOR_AGENT_IDprefactor.jsongit check-ignore prefactor.jsongit status --shortagent_idPREFACTOR_AGENT_ID@prefactor/coreprefactor.jsonprefactor.json