#error

1 messages ยท Page 1 of 1 (latest)

burnt garden
#

on latest version of openclaw, the model shows followiong toek usage,
agent main | session main (openclaw-tui) | kimi-code/kimi-for-coding | tokens 116k/262k (44%)

however, i am getting this error:

HTTP 400: Invalid request: Your request exceeded model token limit: 262144 (requested: 347677)

how do i reset and get it to work again?

dusk vaporBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

burnt garden
#

@bronze sigil

bronze sigilBOT
# burnt garden on latest version of openclaw, the model shows followiong toek usage, agent ma...

This happens when session context accumulates over time. Even though the visible count shows 44%, the actual request includes:

  1. Visible tokens: 116k (your conversation)
  2. System/system prompt tokens: Hidden context that adds up
  3. Request overhead: The actual prompt being sent

Combined, this pushes you over the 262k limit โ†’ 347k requested.

Fix: Start a Fresh Session

The simplest solution: Start a new session/chat. This clears all accumulated context and resets the count.

In your TUI or client:

  • Close the current session
  • Start a fresh session with openclaw-tui

Prevent It Next Time

#
  • Keep conversations focused on single tasks when possible
  • Periodically start fresh sessions for new topics
  • Be aware of very long conversations

Docs Reference


Quick question: What openclaw --version are you running? Sometimes version mismatches can cause unexpected behavior with token counting. ๐Ÿฆ

burnt garden
#

is it latest version @bronze sigil

and the session that got rate limited was initated by telegram, how exactly to clear the session?

bronze sigilBOT
# burnt garden ``` openclaw --version 2026.1.29 ```

Thanks! Version 2026.1.29 is current โ€” that's not the issue.

The token counting discrepancy you saw is expected behavior with Moonshot/Kimi. Their limit is a hard cap, and once you hit it, you must start a fresh session.

Summary

| What you saw    | Reality                                 |
| --------------- | --------------------------------------- |
| 116k/262k (44%) | Only counts visible conversation tokens |
| HTTP 400        | Request exceeded 262k limit (was 347k)  |

Action Steps

  1. Start a fresh session in openclaw-tui
  2. Continue your work from there
    That's it. No config changes needed โ€” just a new session clears the accumulated context.
#

Glad to help! ๐Ÿฆ

bronze sigilBOT
# burnt garden is it latest version <@1457407575476801641> and the session that got rate limi...

Version is current โ€” confirmed โœ…

For Telegram sessions, the easiest way to get a fresh session:

  1. Start a new conversation in Telegram โ€” send a message to your bot. This typically creates a fresh session context.

  2. If it's a persistent session, use the CLI:

    openclaw session list
    

    Find the Telegram session and clear it, or just restart openclaw entirely.

  3. Quickest fix: Restart the openclaw process, then message from Telegram again.


The key point: fresh Telegram message = fresh session (unless you've got persistent sessions configured differently). Just try talking to the bot again in a new conversation thread. ๐Ÿฆ

burnt garden
#

HI please check openclaw crashes as soon i send a voice message from telegram, i can see in session log, that deepgram did transcribe it, but i think kimi 2.5 is sending alot of garbage text back, and causing openclaw to crash

#

@bronze sigil

bronze sigilBOT