Skip to content
avatsavPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

pi-kit

A Docker Sandboxes (sbx) kit for running pi with provider credentials kept on the host.

Adds OpenAI support to the upstream Pi kit:

  • OpenAI API key via OPENAI_API_KEY
  • ChatGPT Plus/Pro OAuth for Pi's openai-codex provider
  • Anthropic API key via ANTHROPIC_API_KEY

Quick start

Allow this publisher once:

sbx settings set kit.allowedSources '["docker.io/","ghcr.io/avatsav/"]'

Run Pi for a project directory:

sbx run ghcr.io/avatsav/pi-kit:latest ~/my-project

sbx run defaults the workspace to the current directory:

cd ~/my-project
sbx run ghcr.io/avatsav/pi-kit:latest

Authentication

ChatGPT Plus/Pro OAuth:

sbx secret set openai --oauth

OpenAI API key:

echo "$OPENAI_API_KEY" | sbx secret set openai

Anthropic API key:

echo "$ANTHROPIC_API_KEY" | sbx secret set anthropic

Recreate the sandbox after changing credentials; sbx wires credential bindings at create time.

Do not run /login inside the sandbox for managed credentials.

Optional shell helper

Add to ~/.zshrc:

sbx-pi() {
  sbx run ghcr.io/avatsav/pi-kit:latest
}

Add to ~/.config/fish/config.fish:

function sbx-pi
    sbx run ghcr.io/avatsav/pi-kit:latest
end

Usage:

cd ~/my-project
sbx-pi

Development

See Local development for building and testing changes locally.

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages