claude

package
v1.69.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package claude provides commands for integrating with Claude Code through GitLab Duo.

Index

Constants

View Source
const (
	// Standard claude environment variables defined [here](https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables)
	EnvAnthropicCustomHeaders = "ANTHROPIC_CUSTOM_HEADERS"
	EnvAnthropicBaseURL       = "ANTHROPIC_BASE_URL"
	EnvAnthropicModel         = "ANTHROPIC_MODEL"
	EnvAnthropicAuthToken     = "ANTHROPIC_AUTH_TOKEN"

	// Default model: This needs to be configured as we don't support
	// all models
	DefaultClaudeModel = "claude-sonnet-4-20250514"

	// Claude executable name
	ClaudeExecutable = "claude"

	// Settings configuration
	ClaudeSettingsDir = ".claude"
	SettingsFileName  = "settings.json"
	APIKeyHelperKey   = "apiKeyHelper"

	CloudConnectorUrl = "https://cloud.gitlab.com/ai/v1/proxy/anthropic"
)

Variables

This section is empty.

Functions

func NewCmdClaude

func NewCmdClaude(f cmdutils.Factory) *cobra.Command

func NewCmdToken

func NewCmdToken(f cmdutils.Factory) *cobra.Command

NewCmdToken creates a new cobra command for generating GitLab Duo access tokens.

Types

type DirectAccessResponse

type DirectAccessResponse struct {
	Headers map[string]string `json:"headers"`
	Token   string            `json:"token"`
}

DirectAccessResponse represents the response from GitLab direct access token API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL