-
-
Notifications
You must be signed in to change notification settings - Fork 2
Initial Setup
This guide walks you through the initial configuration of the Acode AI CLI Assistant Plugin after installation.
After installing the plugin and restarting Acode, follow these steps to set it up:
-
Open the AI Assistant
- Tap the AI CLI Assistant icon in the Acode sidebar
- Or use the keyboard shortcut
Ctrl/Cmd + Shift + P
-
Select an AI Provider
- The plugin will prompt you to choose an AI provider
- You can select from:
- OpenAI
- Google Gemini
- Ollama (local)
- Groq
- Anthropic Claude
- OpenRouter
- Qwen
- OpenAI-Like
-
Configure API Credentials
- Enter your API key for the selected provider
- For some providers, you'll also need to select a model
- For Ollama, you can use the default local endpoint
-
Set a Passphrase
- Create a secret passphrase to encrypt your API keys
- This passphrase will be required for future API key management
- Choose a strong passphrase and remember it
Choosing the right AI provider depends on your needs:
- Best for: General-purpose coding assistance
- Models: GPT-4, GPT-3.5 Turbo, Qwen, and others
- Requirements: API key from OpenAI platform
- Best for: Code analysis and explanation
- Models: Gemini Pro, Gemini 1.5 Pro
- Requirements: API key from Google AI Studio
- Best for: Privacy-focused development
- Models: Llama2, CodeLlama, Mistral, and others
- Requirements: Ollama installed locally on your device
- Best for: Fast code generation
- Models: Llama3, Mixtral, and others
- Requirements: API key from Groq Cloud
- Best for: Detailed code explanation and documentation
- Models: Claude 3 Opus, Claude 3 Sonnet
- Requirements: API key from Anthropic
- Best for: Access to multiple AI models through one API
- Models: All models available through OpenRouter
- Requirements: API key from OpenRouter
- Best for: Chinese language developers or those interested in Alibaba's models
- Models: Qwen Turbo, Qwen Plus, Qwen Max
- Requirements: API key from Alibaba Cloud
- Best for: Custom or self-hosted AI services
- Models: Any model compatible with OpenAI API
- Requirements: API endpoint URL, API key, and model name
The plugin uses advanced encryption to protect your API keys:
-
AES-GCM Encryption
- All API keys are encrypted using AES-GCM
- This provides both confidentiality and integrity
-
PBKDF2 Key Derivation
- Your passphrase is processed through PBKDF2
- Uses 100,000 iterations for strong key derivation
-
Random Initialization Vectors
- Each encryption uses a random IV
- Ensures the same API key encrypted multiple times produces different ciphertext
The plugin automatically adapts to your Acode theme:
- Galaxy-themed background with cosmic effects
- Blue and purple accent colors
- Dark interface elements for comfortable night coding
- Softened galaxy theme with light colors
- Reduced animation intensity
- Light interface elements for daytime use
- Follows your system preference
- Automatically switches between light and dark themes
The plugin is fully responsive and works in all device orientations:
- Optimized for vertical phone use
- Compact layout with efficient space usage
- Enhanced for horizontal typing
- Wider chat interface for better code viewing
- Full desktop-like experience on tablets
- Larger interface elements for touch interaction
After completing the initial setup, test your configuration:
-
Open the AI Assistant
- Use
Ctrl/Cmd + Shift + Akeyboard shortcut
- Use
-
Send a Test Query
- Try something simple like: "Explain what a function is in JavaScript"
-
Check Response
- You should receive a response from your selected AI provider
- If not, check your API key and internet connection
-
Test Context Features
- Select some code in your editor
- Use
Ctrl/Cmd + Eto explain the selected code - Verify that the AI can access your code context
- Enabled by default
- Provides live code suggestions as you type
- Can be configured in settings for different sensitivity levels
- Adjust debounce timing for real-time analysis
- Configure cache expiration times
- Optimize for your device's capabilities
- Modify theme colors through CSS variables
- Adjust UI elements for your preferences
- Configure keyboard shortcuts
- Ensure the plugin is enabled in Settings → Plugins
- Restart Acode completely
- Check that you've completed the initial setup
- Verify your internet connection
- Check that the selected provider is functioning
- Try selecting a different provider
- If you forget your passphrase, you'll need to reconfigure all API keys
- The passphrase cannot be recovered if lost
- Choose a passphrase you can remember
To verify your setup is working correctly:
- Open the AI assistant
- Send a simple query
- Check that you receive a proper response
- Test context-aware features with selected code
- Verify that your API key is properly encrypted and stored
After completing the initial setup, you should:
- Learn about API Key Configuration
- Explore Basic Chat Operations
- Try Real-Time Code Analysis
- Check out Bulk File Operations
If you encounter issues during setup:
- Check the Common Issues documentation
- Visit our GitHub Issues page
- Join our Discussions community for support
- Home
- Getting Started
- Usage Guides
- Advanced Features
- Developer Docs
- Troubleshooting