ClaudeCodeAccountInfo
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ClaudeCodeBaseModel clawd_code_sdk.models.base Base model for all Claude Code Pydantic models. |
⋔ Inheritance diagram¶
graph TD
1904299757["server_info.ClaudeCodeAccountInfo"]
2604142835["base.ClaudeCodeBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2604142835 --> 1904299757
3879467795 --> 2604142835
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: ClaudeCodeBaseModel
Account information from Claude Code.
Source code in src/clawd_code_sdk/models/server_info.py
api_key_source
class-attribute
instance-attribute
¶
Where API key comes from (e.g., "ANTHROPIC_API_KEY").
api_provider
class-attribute
instance-attribute
¶
Active API backend.
Anthropic OAuth login only applies when "firstParty"; for 3P providers the other fields are absent and auth is external (AWS creds, gcloud ADC, etc.).
organization
class-attribute
instance-attribute
¶
Organization name.
subscription_type
class-attribute
instance-attribute
¶
Subscription type (e.g., "Claude API").
token_source
class-attribute
instance-attribute
¶
Where tokens come from (e.g., "claude.ai").