Configure AskCodi API
Fast guide to connect Dyad AI app builder with AskCodi API. Configure custom providers and OpenAI-compatible settings.
Connect Dyad to AskCodi for powerful cloud AI. Enhance local-first development with diverse models.
Why Connect Dyad to AskCodi?
Dyad works with local models by default. Connect AskCodi for advanced reasoning and current knowledge. Use local models for privacy. Connect cloud models for complex app generation.
Prerequisites
- Dyad installed from
https://www.dyad.sh/#download - AskCodi account with API key
- Internet connection
- Know which models you want to use
Your API key connects to multiple AskCodi models via OpenAI-compatible endpoint.
Step 1: Install Dyad
- Download Dyad from
https://www.dyad.sh/#download - Run installer
- Launch Dyad
Step 2: Open Settings
- In Dyad, click Settings in sidebar
- This opens settings panel
Step 3: Go to Model Providers
- In settings, find "Model Providers" section
- This manages AI service connections
Step 4: Add Custom Provider
- Click "Add Custom Providers"
- Enter details:
- Provider ID:
askcodi - Display Name:
AskCodi - API Base URL:
https://api.askcodi.com/v1 - Environment variable:
ASKCODI_API_KEY
- Provider ID:
Step 5: Confirm API URL
Enter the AskCodi URL:
https://api.askcodi.com/v1
Step 6: Add API Key
- Find API key field for AskCodi provider
- Enter your AskCodi API key
- Keep key secure
Step 7: Add Custom Model
- Go to Models section in settings
- Click "Add a Model"
- Select OpenAI-Compatible in Provider dropdown
- Select AskCodi provider you configured
- Enter model details:
Model ID: your-model-name
Name: your-model-name
Replace your-model-name with specific model (gpt-4o, claude-3-sonnet, etc.)
Step 8: Test Integration
- Close settings
- Create new project
- Check AskCodi models appear in dropdown
- Start app generation with AskCodi model
Try simple app task to verify connection works.
Model Selection
Switch models based on needs:
- Basic structure: Use architect-focused models
- Complex features: Use Claude 3 Opus, GPT-4 variants
- Specific frameworks: Use framework-optimized models
Optimization Tips
Provider Management: Switch between local and cloud as needed. Use local for sensitive work. Use AskCodi for complex architecture.
Model Strategy: Test different models. Find best ones for your use cases.
Usage Monitoring: Check AskCodi dashboard for API usage. App generation uses significant tokens.
Workflow: Use local-first approach. Switch to AskCodi for advanced reasoning.
Troubleshooting
Provider Missing:
- Verify API key is correct
- Check provider and model config
- Confirm internet connection
Authentication Errors:
- Check API key formatting (no extra spaces)
- Regenerate key if needed
Connection Failures:
- Confirm URL:
https://api.askcodi.com/v1 - Check API key
- Verify firewall settings
Model Issues:
- Ensure correct provider in model config
- Confirm API key has model access
Security
API Key: Store securely. Use separate key for Dyad to isolate usage.
Privacy: AskCodi models send app requirements to cloud. Use local models for sensitive work.
Key Steps
- Install Dyad from dyad.sh
- Open Settings from sidebar
- Go to Model Providers
- Add custom provider: askcodi
- Use API URL: https://api.askcodi.com/v1
- Set environment variable: ASKCODI_API_KEY
- Add custom model with OpenAI-Compatible type
- Test with app generation task
Connect Dyad to AskCodi for powerful full-stack app development with flexible local-cloud workflows.
Falta algo ou está errado neste guia? Fale connosco