from lichess forum:
"2. Can I use an engine in casual games (or against stockfish/the puzzles/opening training)?
A: Yes. You may ONLY IF YOU LET YOUR OPPONENT KNOW YOU'RE USING ONE. If someone wants to play a computer, they can play vs. AI. They should have expectation that they're playing a human if they accept a human's challenge..."
"2. Can I use an engine in casual games (or against stockfish/the puzzles/opening training)?
A: Yes. You may ONLY IF YOU LET YOUR OPPONENT KNOW YOU'RE USING ONE. If someone wants to play a computer, they can play vs. AI. They should have expectation that they're playing a human if they accept a human's challenge..."