This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository provides documentation, examples, and configuration templates for integrating Claude Code with Bella OpenAPI. It serves as a guide for setting up and using Claude Code as a powerful code agent with various LLM providers through the Bella OpenAPI gateway.
- README.md: Main documentation in Chinese explaining Claude Code integration with Bella OpenAPI
- README_GITHUB_ACTION.md: Documentation for GitHub Actions integration (currently minimal)
- settings.example.json: Example configuration file for Claude Code settings
- workflow.example.json: Example workflow demonstrating task execution flow
- CLAUDE.example.md: Example CLAUDE.md file showing how to document a Java/Maven project (Bella OpenAPI)
- settings.example.json: Contains example environment variables and permissions for Claude Code
- Environment variables:
ANTHROPIC_BASE_URL,ANTHROPIC_AUTH_TOKEN, model configurations - Permissions: Defines allowed/denied operations for security
- Model settings: Primary model (
ANTHROPIC_MODEL) and fast model (ANTHROPIC_SMALL_FAST_MODEL)
- Environment variables:
- CLAUDE.example.md: Comprehensive example showing how to document a complex Java project
- Maven build commands and development scripts
- Multi-module architecture documentation
- Key directories and architectural patterns
- Request processing flow and development notes
- Copy
settings.example.jsonto~/.claude/settings.json - Update the
ANTHROPIC_BASE_URLto point to your Bella OpenAPI instance - Configure
ANTHROPIC_AUTH_TOKENwith your API key - Adjust permissions based on your security requirements
Use the pattern from CLAUDE.example.md when documenting new projects:
- Include build commands and development workflows
- Document architectural patterns and key directories
- Explain request/processing flows for complex systems
- Provide development notes for extending the system
The example configuration includes security restrictions:
- Denies access to environment files (
.env*) - Blocks access to production configuration files
- Restricts dangerous bash commands
- Prevents access to lock files
- Supports various LLM providers through Bella OpenAPI (OpenAI, Claude, Gemini, DeepSeek, etc.)
- Cost-effective with separate API key management
- Enterprise-grade gateway capabilities
- Uses
/initcommand to generate CLAUDE.md files for projects - Supports file selection with
@filenamesyntax - Provides context management with
/clearand/compactcommands - Enables asynchronous development workflows