diff --git a/plugins/openai/codex.go b/plugins/openai/codex.go new file mode 100644 index 000000000..15d84e7c5 --- /dev/null +++ b/plugins/openai/codex.go @@ -0,0 +1,22 @@ +package openai + +import ( + "github.com/1Password/shell-plugins/sdk" + "github.com/1Password/shell-plugins/sdk/needsauth" + "github.com/1Password/shell-plugins/sdk/schema" + "github.com/1Password/shell-plugins/sdk/schema/credname" +) + +func OpenAICodex() schema.Executable { + return schema.Executable{ + Name: "OpenAI Codex", + Runs: []string{"codex"}, + DocsURL: sdk.URL("https://help.openai.com/en/articles/11096431-openai-codex-cli-getting-started"), + NeedsAuth: needsauth.NotForHelpOrVersion(), + Uses: []schema.CredentialUsage{ + { + Name: credname.APIKey, + }, + }, + } +} diff --git a/plugins/openai/plugin.go b/plugins/openai/plugin.go index 17caee4e1..9c2857a1e 100644 --- a/plugins/openai/plugin.go +++ b/plugins/openai/plugin.go @@ -19,6 +19,7 @@ func New() schema.Plugin { OpenAICLI(), OpenAIEvalsCLI(), OpenAIEvalSetCLI(), + OpenAICodex(), }, } }