Skip to content

Commit ea8762e

Browse files
authored
v0.3.51: mcp support, copilot improvements, polling for live execution data, bug fixes
2 parents 784992f + cff0a87 commit ea8762e

File tree

236 files changed

+25836
-1046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+25836
-1046
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Copilot is a Sim-managed service. To use Copilot on a self-hosted instance:
174174
- **Monorepo**: [Turborepo](https://turborepo.org/)
175175
- **Realtime**: [Socket.io](https://socket.io/)
176176
- **Background Jobs**: [Trigger.dev](https://trigger.dev/)
177+
- **Remote Code Execution**: [E2B](https://www.e2b.dev/)
177178

178179
## Contributing
179180

apps/docs/content/docs/execution/advanced.mdx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,47 @@ Monitor your usage and billing in Settings → Subscription:
212212
- **Usage Limits**: Plan limits with visual progress indicators
213213
- **Billing Details**: Projected charges and minimum commitments
214214
- **Plan Management**: Upgrade options and billing history
215+
216+
### Programmatic Rate Limits & Usage (API)
217+
218+
You can query your current API rate limits and usage summary using your API key.
219+
220+
Endpoint:
221+
222+
```text
223+
GET /api/users/me/usage-limits
224+
```
225+
226+
Authentication:
227+
228+
- Include your API key in the `X-API-Key` header.
229+
230+
Response (example):
231+
232+
```json
233+
{
234+
"success": true,
235+
"rateLimit": {
236+
"sync": { "isLimited": false, "limit": 10, "remaining": 10, "resetAt": "2025-09-08T22:51:55.999Z" },
237+
"async": { "isLimited": false, "limit": 50, "remaining": 50, "resetAt": "2025-09-08T22:51:56.155Z" },
238+
"authType": "api"
239+
},
240+
"usage": {
241+
"currentPeriodCost": 12.34,
242+
"limit": 100,
243+
"plan": "pro"
244+
}
245+
}
246+
```
247+
248+
Example:
249+
250+
```bash
251+
curl -X GET -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" https://sim.ai/api/users/me/usage-limits
252+
```
253+
254+
Notes:
255+
256+
- `currentPeriodCost` reflects usage in the current billing period.
257+
- `limit` is derived from individual limits (Free/Pro) or pooled organization limits (Team/Enterprise).
258+
- `plan` is the highest-priority active plan associated with your user.

0 commit comments

Comments
 (0)