Bastion

1 min read Original article ↗

Define your agent’s environment with a JSON template.

template.json

{

"agents": {

"opencode": {

"working_directory": "/workspace/app",

"auth": {

"openai": {

"type": "api",

"key": "${{ secret.OPENAI_API_KEY }}"

}

},

"config": {

"model": "openai/gpt-5.5",

"permission": "allow"

}

}

},

"actions": {

"init": [

{

"use": "setup_bun"

},

{

"run": "git clone https://github.com/.../app.git",

"working_directory": "/workspace"

},

{

"run": "bun install",

"working_directory": "/workspace/app"

}

]

}

}