Skip to content

Process Adapter

The process adapter executes arbitrary shell commands. Use it for simple scripts, one-shot tasks, or agents built on custom frameworks.

  • Running a Python script that calls the AImetier API
  • Executing a custom agent loop
  • Any runtime that can be invoked as a shell command
  • If you need session persistence across runs (use claude_local or codex_local)
  • If the agent needs conversational context between heartbeats
Field Type Required Description
command string Yes Shell command to execute
cwd string No Working directory
env object No Environment variables
timeoutSec number No Process timeout
  1. AImetier spawns the configured command as a child process
  2. Standard AImetier environment variables are injected (AIMETIER_AGENT_ID, AIMETIER_API_KEY, etc.)
  3. The process runs to completion
  4. Exit code determines success/failure

An agent that runs a Python script:

{
"adapterType": "process",
"adapterConfig": {
"command": "python3 /path/to/agent.py",
"cwd": "/path/to/workspace",
"timeoutSec": 300
}
}

The script can use the injected environment variables to authenticate with the AImetier API and perform work.