Tip: Instantly save 10k tokens on every new session in Claude Code

By default claude starts each session with ~20k tokens worth of system tool definitions. One of them is the Artifact tool which allows claude to post HTML docs to the web. This takes up HALF of the entire tokens.

Whilst claude has a 1m token context window, the ‘smart zone’ of that window is only around 200k tokens. So doing this saves 10% of the smart zone.

Three ways to disable it:

1.Add "enableArtifact’:falseto~/.claude/settings.json. Turns it off for every session.

2.Run claude with --disallowed-tools Artifact. Turns it off for one session.

3.Set the environment variable

CLAUDE CODE DISABLE ARTIFACT=1

I use gpt with 100$ subscirption I never run out of tokens annd I use it on ultra non stop, they reset the quota at 2-3 days interval and also have a few manual resets as well… :slight_smile:

Nice, my 20$ ChatGPT subscription is pretty limited, I run out of tokens every 2-3 days…

Yes and also you do not h ave access to thier acutal better models even if you choose the latest is not really the latest I’ve done some testing, the difference is huge!

1 Like

this is interesting, I check on it, thanks for mentioning

1 Like