← All documentation

Configure AskCodi API

Step-by-step guide to integrate Cline AI coding assistant with AskCodi API. Learn to configure OpenAI-compatible settings for Plan Mode and Act Mode in VS Code for autonomous development.

Why Connect Cline to AskCodi?

Connect Cline to AskCodi to unlock multiple specialized models for coding tasks.

Use AskCodi’s OpenAI-compatible API. It requires just config changes in Cline.

Keep your API key private. It’s stored locally.

Prerequisites for Integration

You need:

  • VS Code with Cline extension
  • AskCodi account with API key
  • Internet
  • Basic VS Code knowledge
  • Git for safe reviews

Step 1: Install Cline Extension

Open VS Code → Extensions (Ctrl+Shift+X).

Search: saoudrizwan.claude-dev.

Install. Reload VS Code.

Cline appears in your sidebar.

Step 2: Access Cline Settings

Click Cline icon in sidebar or use Command Palette (Ctrl+Shift+P) → “Cline”.

Click Settings icon in top bar.

Step 3: Configure API Provider

In settings, find API Provider.

Select “OpenAI Compatible”.

Step 4: Set Custom Base URL

In Base URL field, enter:

https://api.askcodi.com/v1

Step 5: Add Your AskCodi API Key

Enter your AskCodi API key in the API Key field.

Store it securely. Never commit it.

Step 6: Select Your Model

Pick a model like gpt-4o or claude-3-opus.

Step 7: Test the Integration

Test both modes:

  1. Simple Plan Mode request
  2. Review plan output
  3. Small Act Mode change
  4. Check response time and quality

Watch for errors.

Optimization Tips for Agentic Coding

Model Selection: Use one model for planning, another for execution.

Usage Monitoring: Check AskCodi dashboard for usage.

Planning Strategy: Use Plan Mode for complex tasks.

Version Control: Use Git. Create feature branches.

Performance Tuning: Switch models if responses are slow.

Troubleshooting Common Issues

API Key Not Accepting: Verify key and URL.

Plan Mode Not Working: Check model and key access.

Act Mode Issues: Ensure model supports implementation.

Config Not Saving: Check extension and permissions.

Model Problems: Confirm model availability in AskCodi.

Security Best Practices

API Key: Store securely. Rotate regularly.

Plan Review: Always review plans before Act Mode.

Change Validation: Test after Act Mode changes.

Access Controls: Limit who can use Act Mode.

Quick Takeaways

  • Install Cline: ID saoudrizwan.claude-dev
  • Set API: “OpenAI Compatible”
  • Base URL: https://api.askcodi.com/v1
  • Add API key
  • Pick model
  • Test both modes
  • Monitor usage
  • Use version control

Best Practices for Production Use

Start simple. Review plans before Act Mode.

Use feature branches for big changes.

Create separate API keys for dev and prod.

Conclusion

Cline + AskCodi = diverse models for planning and coding.

Test both modes. Optimize model selection.

Try different models for Plan vs Act modes. Share your results.

Something missing or wrong in this guide? Talk to us