This kit installs Pi behind the codex command inside Docker SBX's built-in
codex agent.
Using the built-in identity is intentional: SBX 0.35 associates the stored
OpenAI OAuth credential with the codex agent name. The launch command is
therefore:
sbx run --kit git+https://github.com/withlogicco/sbx-kit-lambda codexThe default codex command launches the lambda agent. The original SBX Codex CLI remains
available as sbx-codex:
codex
sbx-codexPi starts on openai-codex/gpt-5.6-terra with high thinking. Its model picker
is scoped to all Codex models and OpenCode Go models.
Store OpenCode Go API key:
sbx secret set -g opencode-goAuthenticate with OpenAI:
sbx secret set -g openai --oauthSBX retains the credential on the host and does not expose its value in the sandbox.
Add this function to ~/.zshrc to create or resume a sandbox named
lambda-<current-directory>:
lambda() {
local name="lambda-${PWD:t}"
local kit="git+https://github.com/withlogicco/sbx-kit-lambda"
if [[ "${1:-}" == "--reset" ]] && sbx ls --quiet | grep -Fxq -- "$name"; then
sbx rm --force "$name"
fi
if sbx ls --quiet | grep -Fxq -- "$name"; then
sbx run --name "$name"
else
sbx run --kit "$kit" --name "$name" codex
fi
}Reload your Zsh configuration with source ~/.zshrc, then run lambda from
the project directory. To remove the directory's existing sandbox and create a
fresh one, run lambda --reset.
sbx run --kit git+https://github.com/withlogicco/sbx-kit-lambda codexRun lambda after the sandbox is created:
sbx run --kit git+https://github.com/withlogicco/sbx-kit-lambda --name <sandbox-name> codexValidate the kit with:
sbx kit validate .